Class Item

An item reference with a 4-byte amount

Hierarchy

  • Item

Constructors

Properties

Accessors

Methods

Constructors

Properties

_amount: number = null
_byteSize: number = 0
_id: number = null

Accessors

  • get amount(): number
  • Remarks

    • Value range is 0-4097152080

    Returns number

  • set amount(amount: number): void
  • Remarks

    • Value range is 0-4097152080

    Parameters

    • amount: number

    Returns void

  • get byteSize(): number
  • Returns the size of the data that this was deserialized from.

    Returns

    The size of the data that this was deserialized from

    Returns number

  • get id(): number
  • Remarks

    • Value range is 0-64008

    Returns number

  • set id(id: number): void
  • Remarks

    • Value range is 0-64008

    Parameters

    • id: number

    Returns void

Methods

  • Deserializes an instance of Item from the provided EoReader.

    Returns

    The deserialized data

    Parameters

    • reader: EoReader

      the reader that the data will be deserialized from

    Returns Item

  • Serializes an instance of Item to the provided EoWriter.

    Parameters

    • writer: EoWriter

      the writer that the data will be serialized to

    • data: Item

      the data to serialize

    Returns void

Generated using TypeDoc