SerenityJS
    Preparing search index...

    Represents a enum for the available command packet.

    Hierarchy

    • DataType
      • Enums
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    name: string

    The name of the enum.

    values: number[]

    The indexed values of the enum.

    Methods

    • Read a value from the stream.

      Parameters

      • stream: BinaryStream

        The BinaryStream to read from.

      • Optionaloptions: PacketDataTypeOptions<string[]>

        Options for reading the data type, such as endianness.

      Returns Enums[]

      The value read from the stream.

    • Write a value to the stream.

      Parameters

      • stream: BinaryStream

        The BinaryStream to write to.

      • value: Enums[]

        The value to write.

      • Optionaloptions: PacketDataTypeOptions<string[]>

        Options for writing the data type, such as endianness.

      Returns void