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

    • Reads the data type from a binary stream.

      Parameters

      • stream: BinaryStream
      • endian: Endianness
      • enumValues: string[]

      Returns Enums[]

      The data type.

    • Writes the data type to a binary stream.

      Parameters

      • stream: BinaryStream
      • value: Enums[]
      • endian: Endianness
      • enumValues: string[]

      Returns void