com.onlineobject.objectnet Namespace

DataStream Methods

The DataStream type exposes the following members.

Methods


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