com.onlineobject.objectnet Namespace

IDataStream Methods

The IDataStream type exposes the following members.

Methods


  Name Description
Public method Allocate(Int32)
Allocates a buffer of the specified size for the data stream.
Public method Allocate(array<Byte>[]()[][])
Allocates a buffer using the provided byte array for the data stream.
Public method Forward(Int32)
Moves the stream forward by a specified distance.
Public method Forward<(Of <<'(T>)>>)()()()()
Moves the stream forward to the end of the data of a specific type.
Public method GetBuffer
Retrieves the entire buffer from the data stream.
Public method Read<(Of <<'(T>)>>)(Boolean)
Reads data of a generic type from the stream.
Public method Read<(Of <<'(T>)>>)(Int32)
Reads data of a generic type from the stream at the specified offset.
Public method Read<(Of <<'(T>)>>)(Type)
Reads data of a specified type from the stream.
Public method RegisterStream<(Of <<'(T>)>>)
Registers a stream with the data stream for a specific data type.
Public method Reset
Resets the data stream to its initial state.
Public method Rewind(Int32)
Rewinds the stream by a specified distance.
Public method Rewind<(Of <<'(T>)>>)()()()()
Rewinds the stream to the beginning of the data of a specific type.
Public method ShiftLeft
Shifts the data in the stream to the left starting from a specified index.
Public method ShiftRight
Shifts the data in the stream to the right starting from a specified index.
Public method Write<(Of <<'(T>)>>)(T)
Writes data of a generic type to the stream.
Public method Write<(Of <<'(T>)>>)(T, Int32)
Writes data of a generic type to the stream at the specified offset.