SerenityJS
    Preparing search index...

    Hierarchy

    • DataType
      • TextSource
    Index

    Constructors

    Methods

    Constructors

    • Default constructor for DataType.

      Parameters

      • ..._: unknown[]

      Returns TextSource

    Methods

    • Read a value from the stream.

      Parameters

      • stream: BinaryStream

        The BinaryStream to read from.

      • options: PacketDataTypeOptions<TextPacketType>

        Options for reading the data type, such as endianness.

      Returns null | string

      The value read from the stream.

    • Write a value to the stream.

      Parameters

      • stream: BinaryStream

        The BinaryStream to write to.

      • value: string

        The value to write.

      • options: PacketDataTypeOptions<TextPacketType>

        Options for writing the data type, such as endianness.

      Returns void