@zeroc/ice
    Preparing search index...

    Class OptionalFormat

    Optional format for encoding optional values.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Constructs a new enumerator.

      Parameters

      • name: string

        The name of the enumerator.

      • value: number

        The numeric value of the enumerator.

      Returns OptionalFormat

    Properties

    name: string

    The name of the enumerator.

    value: number

    The value of the enumerator.

    Class instance. No longer supported.

    Fixed 1-byte encoding.

    Fixed 2-byte encoding.

    Fixed 4-byte encoding.

    Fixed 8-byte encoding.

    Fixed "size encoding" using 4 bytes followed by data. Used by variable-size structs, and containers whose sizes can't be computed prior to unmarshaling.

    "Size encoding" using either 1 or 5 bytes. Used by enums, class identifiers, etc.

    Variable "size encoding" using either 1 or 5 bytes followed by data. Used by strings, fixed size structs, and containers whose size can be computed prior to marshaling.

    Methods

    • Returns a string representation of the current enumerator.

      Returns string

      A string representation of the current enumerator.

    • Returns the enumerator corresponding to the specified numeric value.

      Parameters

      • value: number

        The enumerator value.

      Returns OptionalFormat

      The matching enumerator, or undefined if no enumerator corresponds to the given value.