SerenityJS
    Preparing search index...

    Represents a magic data type. Magic is used when establishing a connection in RakNet.

    Hierarchy

    • DataType
      • Magic
    Index

    Constructors

    Methods

    Constructors

    • Default constructor for DataType.

      Parameters

      • ..._: unknown[]

      Returns Magic

    Methods

    • Reads the magic data type from a binary stream.

      Parameters

      • stream: BinaryStream

        The binary stream to read from.

      Returns Buffer

      The magic data type.

    • Writes the magic data type to a binary stream.

      Parameters

      • stream: BinaryStream

        The binary stream to write to.

      Returns void