Class ByteCoords

Map coordinates with raw 1-byte values

Hierarchy

  • ByteCoords

Constructors

Properties

Accessors

Methods

Constructors

Properties

_byteSize: number = 0
_x: number = null
_y: number = null

Accessors

  • 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 x(): number
  • Remarks

    • Value range is 0-255

    Returns number

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

    • Value range is 0-255

    Parameters

    • x: number

    Returns void

  • get y(): number
  • Remarks

    • Value range is 0-255

    Returns number

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

    • Value range is 0-255

    Parameters

    • y: number

    Returns void

Methods

  • Deserializes an instance of ByteCoords from the provided EoReader.

    Returns

    The deserialized data

    Parameters

    • reader: EoReader

      the reader that the data will be deserialized from

    Returns ByteCoords

  • Serializes an instance of ByteCoords to the provided EoWriter.

    Parameters

    • writer: EoWriter

      the writer that the data will be serialized to

    • data: ByteCoords

      the data to serialize

    Returns void

Generated using TypeDoc