DataStream Methods
The DataStream type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() |
Allocate(Int32) |
Allocates a new buffer with a specified size.
|
![]() |
Allocate(array<Byte>[]()[][]) |
Allocates a buffer using an existing byte array.
|
![]() |
Dispose |
Disposes of the resources used by the instance, clearing the stream map and suppressing finalization.
|
![]() |
Forward(Int32) |
Advances the buffer by a specified distance.
|
![]() |
Forward<(Of <<'(T>)>>)()()()() |
Advances the buffer index forward by the size of the type T.
|
![]() |
GetBuffer |
Retrieves the current buffer.
|
![]() |
GetBufferSize |
Gets the current size of the buffer.
|
![]() |
GetClient |
Retrieves the client associated with this instance.
|
![]() |
Read<(Of <<'(T>)>>)(Boolean) |
Reads data of type T from the buffer, with an option to rewind the buffer index before reading.
|
![]() |
Read<(Of <<'(T>)>>)(Int32) |
Reads data of type T from the buffer at a specific offset.
|
![]() |
Read<(Of <<'(T>)>>)(Type) |
Reads data of a specified type from the data buffer using a registered reader.
|
![]() ![]() |
RegisterGlobalStream<(Of <<'(T>)>>) |
Registers a global stream handler for a specific data type.
|
![]() |
RegisterStream<(Of <<'(T>)>>) |
Registers a stream handler for a specific data type.
|
![]() |
Reset |
Resets the internal buffer index and size, and clears the data buffer.
|
![]() |
Rewind(Int32) |
Rewinds the buffer by a specified distance.
|
![]() |
Rewind<(Of <<'(T>)>>)()()()() |
Rewinds the buffer by the size of a specified type.
|
![]() |
ShiftLeft |
Shifts the data in the buffer to the left starting from a specified index.
|
![]() |
ShiftRight |
Shifts the data in the buffer to the right starting from a specified index.
|
![]() |
Write<(Of <<'(T>)>>)(T) |
Writes data of a specified type to the data buffer using a registered writer.
|
![]() |
Write<(Of <<'(T>)>>)(T, Int32) |
Writes data of a specified type to the data buffer at a specific offset using a registered writer.
|
![]() |
Write<(Of <<'(T>)>>)(T, Type) |
Writes data of a specified type to the data buffer using a registered writer.
|