Interface IBinaryTokenStreamReader
Namespace: Orleans.Serialization
Assembly: Orleans.Core.Abstractions.dll
Syntax
public interface IBinaryTokenStreamReader
Properties
| Improve this Doc View SourceCurrentPosition
Current read position in the stream.
Declaration
int CurrentPosition { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Length
Gets the total length.
Declaration
int Length { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
| Improve this Doc View SourceCopy()
Creates a copy of the current stream reader.
Declaration
IBinaryTokenStreamReader Copy()
Returns
| Type | Description |
|---|---|
| IBinaryTokenStreamReader | The new copy |
ReadBlockInto(Array, Int32)
Read a block of data into the specified output Array.
Declaration
void ReadBlockInto(Array array, int n)
Parameters
| Type | Name | Description |
|---|---|---|
| Array | array | Array to output the data to. |
| System.Int32 | n | Number of bytes to read. |
ReadBoolean()
Read a bool value from the stream.
Declaration
bool ReadBoolean()
Returns
| Type | Description |
|---|---|
| System.Boolean | Data from current position in stream, converted to the appropriate output type. |
ReadByte()
Read an byte value from the stream.
Declaration
byte ReadByte()
Returns
| Type | Description |
|---|---|
| System.Byte | Data from current position in stream, converted to the appropriate output type. |
ReadByteArray(Byte[], Int32, Int32)
Read the next bytes from the stream.
Declaration
void ReadByteArray(byte[] destination, int offset, int count)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | destination | Output array to store the returned data in. |
| System.Int32 | offset | Offset into the destination array to write to. |
| System.Int32 | count | Number of bytes to read. |
ReadBytes(Int32)
Read the next bytes from the stream.
Declaration
byte[] ReadBytes(int count)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | count | Number of bytes to read. |
Returns
| Type | Description |
|---|---|
| System.Byte[] | Data from current position in stream, converted to the appropriate output type. |
ReadChar()
Read an char value from the stream.
Declaration
char ReadChar()
Returns
| Type | Description |
|---|---|
| System.Char | Data from current position in stream, converted to the appropriate output type. |
ReadDateTime()
Declaration
DateTime ReadDateTime()
Returns
| Type | Description |
|---|---|
| DateTime |
ReadDecimal()
Read an decimal value from the stream.
Declaration
decimal ReadDecimal()
Returns
| Type | Description |
|---|---|
| System.Decimal | Data from current position in stream, converted to the appropriate output type. |
ReadDouble()
Read an double value from the stream.
Declaration
double ReadDouble()
Returns
| Type | Description |
|---|---|
| System.Double | Data from current position in stream, converted to the appropriate output type. |
ReadFloat()
Read an float value from the stream.
Declaration
float ReadFloat()
Returns
| Type | Description |
|---|---|
| System.Single | Data from current position in stream, converted to the appropriate output type. |
ReadGuid()
Declaration
Guid ReadGuid()
Returns
| Type | Description |
|---|---|
| Guid |
ReadInt()
Read an Int32 value from the stream.
Declaration
int ReadInt()
Returns
| Type | Description |
|---|---|
| System.Int32 | Data from current position in stream, converted to the appropriate output type. |
ReadIPAddress()
Read an IPAddress value from the stream.
Declaration
IPAddress ReadIPAddress()
Returns
| Type | Description |
|---|---|
| IPAddress | Data from current position in stream, converted to the appropriate output type. |
ReadIPEndPoint()
Read an IPEndPoint value from the stream.
Declaration
IPEndPoint ReadIPEndPoint()
Returns
| Type | Description |
|---|---|
| IPEndPoint | Data from current position in stream, converted to the appropriate output type. |
ReadLong()
Read an Int64 value from the stream.
Declaration
long ReadLong()
Returns
| Type | Description |
|---|---|
| System.Int64 | Data from current position in stream, converted to the appropriate output type. |
ReadSByte()
Read an sbyte value from the stream.
Declaration
sbyte ReadSByte()
Returns
| Type | Description |
|---|---|
| System.SByte | Data from current position in stream, converted to the appropriate output type. |
ReadShort()
Read an Int16 value from the stream.
Declaration
short ReadShort()
Returns
| Type | Description |
|---|---|
| System.Int16 | Data from current position in stream, converted to the appropriate output type. |
ReadSiloAddress()
Read an SiloAddress value from the stream.
Declaration
SiloAddress ReadSiloAddress()
Returns
| Type | Description |
|---|---|
| SiloAddress | Data from current position in stream, converted to the appropriate output type. |
ReadString()
Read an string value from the stream.
Declaration
string ReadString()
Returns
| Type | Description |
|---|---|
| System.String | Data from current position in stream, converted to the appropriate output type. |
ReadTimeSpan()
Declaration
TimeSpan ReadTimeSpan()
Returns
| Type | Description |
|---|---|
| TimeSpan |
ReadUInt()
Read an UInt32 value from the stream.
Declaration
uint ReadUInt()
Returns
| Type | Description |
|---|---|
| System.UInt32 | Data from current position in stream, converted to the appropriate output type. |
ReadULong()
Read an UInt64 value from the stream.
Declaration
ulong ReadULong()
Returns
| Type | Description |
|---|---|
| System.UInt64 | Data from current position in stream, converted to the appropriate output type. |
ReadUShort()
Read an UInt16 value from the stream.
Declaration
ushort ReadUShort()
Returns
| Type | Description |
|---|---|
| System.UInt16 | Data from current position in stream, converted to the appropriate output type. |
Reset(IList<ArraySegment<Byte>>)
Resets this instance with the provided data.
Declaration
void Reset(IList<ArraySegment<byte>> buffs)
Parameters
| Type | Name | Description |
|---|---|---|
| IList<ArraySegment<System.Byte>> | buffs | The underlying buffers. |