SerenityJS
    Preparing search index...

    Hierarchy

    • DataType
      • MapTrackedItems
    Index

    Constructors

    Methods

    Constructors

    • Default constructor for DataType.

      Parameters

      • ..._: unknown[]

      Returns MapTrackedItems

    Methods

    • Read a value from the stream.

      Parameters

      • stream: BinaryStream

        The BinaryStream to read from.

      • Optionaloptions: PacketDataTypeOptions<number>

        Options for reading the data type, such as endianness.

      Returns null | MapTrackedItem[]

      The value read from the stream.

    • Write a value to the stream.

      Parameters

      • stream: BinaryStream

        The BinaryStream to write to.

      • value: MapTrackedItem[]

        The value to write.

      • Optionaloptions: PacketDataTypeOptions<number>

        Options for writing the data type, such as endianness.

      Returns void