The DataStreamReader
class is the counterpart of the
DataStreamWriter
class and can be be used to deserialize data which
was prepared with it.
Inherited Members#
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Namespace: System.Dynamic.ExpandoObject#
Assembly: transport.dll#
Syntax#
Remarks#
DataStreamReader(NativeArray\<Byte>)#
Declaration#
Parameters#
Type | Name | Description |
---|
NativeArray\<System.Byte> | array | |
DataStreamReader(Byte*, Int32)#
Declaration#
Parameters#
Type | Name | Description |
---|
System.Byte* | data | |
System.Int32 | length | |
HasFailedReads#
Declaration#
Property Value#
Type | Description |
---|
System.Boolean | |
IsCreated#
True if the reader has been pointed to a valid buffer space. This would
be false if the reader was created with no arguments.
Declaration#
Property Value#
Type | Description |
---|
System.Boolean | |
IsLittleEndian#
Declaration#
Property Value#
Type | Description |
---|
System.Boolean | |
Length#
The total size of the buffer space this reader is working with.
Declaration#
Property Value#
Type | Description |
---|
System.Int32 | |
GetBitsRead()#
Declaration#
Returns#
Type | Description |
---|
System.Int32 | |
GetBytesRead()#
Declaration#
Returns#
Type | Description |
---|
System.Int32 | |
ReadByte()#
Declaration#
Returns#
Type | Description |
---|
System.Byte | |
ReadBytes(NativeArray\<Byte> )#
Read and copy data into the given NativeArray of bytes, an exception
will be thrown if not enough bytes are available.
Declaration#
Parameters#
Type | Name | Description |
---|
NativeArray\<System.Byte> | array | |
ReadBytes(Byte*, Int32)#
Read and copy data to the memory location pointed to, an exception will
be thrown if it does not fit.
Declaration#
Parameters#
Type | Name | Description |
---|
System.Byte* | data | |
System.Int32 | length | |
Exceptions#
Type | Condition |
---|
System.ArgumentOutOfRangeException | Thrown if the length will put the reader out of bounds based on the current read pointer position. |
ReadFixedString(Byte*, Int32)#
Declaration#
Parameters#
Type | Name | Description |
---|
System.Byte* | data | |
System.Int32 | maxLength | |
Returns#
Type | Description |
---|
System.UInt16 | |
ReadFixedString128()#
Declaration#
Returns#
Type | Description |
---|
FixedString128Bytes | |
ReadFixedString32()#
Declaration#
Returns#
Type | Description |
---|
FixedString32Bytes | |
ReadFixedString4096()#
Declaration#
Returns#
Type | Description |
---|
FixedString4096Bytes | |
ReadFixedString512()#
Declaration#
Returns#
Type | Description |
---|
FixedString512Bytes | |
ReadFixedString64()#
Declaration#
Returns#
Type | Description |
---|
FixedString64Bytes | |
ReadFloat()#
Declaration#
Returns#
Type | Description |
---|
System.Single | |
ReadInt()#
Declaration#
Returns#
Type | Description |
---|
System.Int32 | |
ReadIntNetworkByteOrder()#
Declaration#
Returns#
Type | Description |
---|
System.Int32 | |
ReadLong()#
Declaration#
Returns#
Type | Description |
---|
System.Int64 | |
ReadPackedFixedString128Delta(FixedString128Bytes, NetworkCompressionModel)#
Declaration#
Parameters#
Type | Name | Description |
---|
FixedString128Bytes | baseline | |
NetworkCompressionModel | model | |
Returns#
Type | Description |
---|
FixedString128Bytes | |
ReadPackedFixedString32Delta(FixedString32Bytes, NetworkCompressionModel)#
Declaration#
Parameters#
Type | Name | Description |
---|
FixedString32Bytes | baseline | |
NetworkCompressionModel | model | |
Returns#
Type | Description |
---|
FixedString32Bytes | |
ReadPackedFixedString4096Delta(FixedString4096Bytes, NetworkCompressionModel)#
Declaration#
Parameters#
Type | Name | Description |
---|
FixedString4096Bytes | baseline | |
NetworkCompressionModel | model | |
Returns#
Type | Description |
---|
FixedString4096Bytes | |
ReadPackedFixedString512Delta(FixedString512Bytes, NetworkCompressionModel)#
Declaration#
Parameters#
Type | Name | Description |
---|
FixedString512Bytes | baseline | |
NetworkCompressionModel | model | |
Returns#
Type | Description |
---|
FixedString512Bytes | |
ReadPackedFixedString64Delta(FixedString64Bytes, NetworkCompressionModel)#
Declaration#
Parameters#
Type | Name | Description |
---|
FixedString64Bytes | baseline | |
NetworkCompressionModel | model | |
Returns#
Type | Description |
---|
FixedString64Bytes | |
ReadPackedFixedStringDelta(Byte*, Int32, Byte*, UInt16, NetworkCompressionModel)#
Declaration#
Parameters#
Type | Name | Description |
---|
System.Byte* | data | |
System.Int32 | maxLength | |
System.Byte* | baseData | |
System.UInt16 | baseLength | |
NetworkCompressionModel | model | |
Returns#
Type | Description |
---|
System.UInt16 | |
ReadPackedFloat(NetworkCompressionModel)#
Declaration#
Parameters#
Type | Name | Description |
---|
NetworkCompressionModel | model | |
Returns#
Type | Description |
---|
System.Single | |
ReadPackedFloatDelta(Single, NetworkCompressionModel)#
Declaration#
Parameters#
Type | Name | Description |
---|
System.Single | baseline | |
NetworkCompressionModel | model | |
Returns#
Type | Description |
---|
System.Single | |
ReadPackedInt(NetworkCompressionModel)#
Declaration#
Parameters#
Type | Name | Description |
---|
NetworkCompressionModel | model | |
Returns#
Type | Description |
---|
System.Int32 | |
ReadPackedIntDelta(Int32, NetworkCompressionModel)#
Declaration#
Parameters#
Type | Name | Description |
---|
System.Int32 | baseline | |
NetworkCompressionModel | model | |
Returns#
Type | Description |
---|
System.Int32 | |
ReadPackedLong(NetworkCompressionModel)#
Declaration#
Parameters#
Type | Name | Description |
---|
NetworkCompressionModel | model | |
Returns#
Type | Description |
---|
System.Int64 | |
ReadPackedLongDelta(Int64, NetworkCompressionModel)#
Declaration#
Parameters#
Type | Name | Description |
---|
System.Int64 | baseline | |
NetworkCompressionModel | model | |
Returns#
Type | Description |
---|
System.Int64 | |
ReadPackedUInt(NetworkCompressionModel)#
Declaration#
Parameters#
Type | Name | Description |
---|
NetworkCompressionModel | model | |
Returns#
Type | Description |
---|
System.UInt32 | |
ReadPackedUIntDelta(UInt32, NetworkCompressionModel)#
Declaration#
Parameters#
Type | Name | Description |
---|
System.UInt32 | baseline | |
NetworkCompressionModel | model | |
Returns#
Type | Description |
---|
System.UInt32 | |
ReadPackedULong(NetworkCompressionModel)#
Declaration#
Parameters#
Type | Name | Description |
---|
NetworkCompressionModel | model | |
Returns#
Type | Description |
---|
System.UInt64 | |
ReadPackedULongDelta(UInt64, NetworkCompressionModel)#
Declaration#
Parameters#
Type | Name | Description |
---|
System.UInt64 | baseline | |
NetworkCompressionModel | model | |
Returns#
Type | Description |
---|
System.UInt64 | |
ReadRawBits(Int32)#
Declaration#
Parameters#
Type | Name | Description |
---|
System.Int32 | numbits | |
Returns#
Type | Description |
---|
System.UInt32 | |
ReadShort()#
Declaration#
Returns#
Type | Description |
---|
System.Int16 | |
ReadShortNetworkByteOrder()#
Declaration#
Returns#
Type | Description |
---|
System.Int16 | |
ReadUInt()#
Declaration#
Returns#
Type | Description |
---|
System.UInt32 | |
ReadUIntNetworkByteOrder()#
Declaration#
Returns#
Type | Description |
---|
System.UInt32 | |
ReadULong()#
Declaration#
Returns#
Type | Description |
---|
System.UInt64 | |
ReadUShort()#
Declaration#
Returns#
Type | Description |
---|
System.UInt16 | |
ReadUShortNetworkByteOrder()#
Declaration#
Returns#
Type | Description |
---|
System.UInt16 | |
SeekSet(Int32)#
Declaration#
Parameters#
Type | Name | Description |
---|
System.Int32 | pos | |