MemoryStream.read

Reads data from a byte stream into a structured type based on specified field names and read kinds. Designed specifically for better control reading string and array fields.

  1. T read()
  2. T[] read(size_t count)
  3. T read()
  4. T read()
    class MemoryStream
    final
    T
    read
    (
    T
    ARGS...
    )
    ()
  5. T[] read(size_t count)

Parameters

T

The type representing the structure to read into.

ARGS

Variadic template parameter representing field names and read kinds.

Return Value

Type: T

Returns an instance of type T with fields populated based on the specified read operations.

Meta