Show / Hide Table of Contents

Interface IBinaryTokenStreamReader

Namespace: Orleans.Serialization
Assembly: Orleans.Core.Abstractions.dll
Syntax
public interface IBinaryTokenStreamReader

Properties

| Improve this Doc View Source

CurrentPosition

Current read position in the stream.

Declaration
int CurrentPosition { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Length

Gets the total length.

Declaration
int Length { get; }
Property Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

Copy()

Creates a copy of the current stream reader.

Declaration
IBinaryTokenStreamReader Copy()
Returns
Type Description
IBinaryTokenStreamReader

The new copy

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

ReadDateTime()

Declaration
DateTime ReadDateTime()
Returns
Type Description
DateTime
| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

ReadGuid()

Declaration
Guid ReadGuid()
Returns
Type Description
Guid
| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

ReadTimeSpan()

Declaration
TimeSpan ReadTimeSpan()
Returns
Type Description
TimeSpan
| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

Extension Methods

ImmutableExt.AsImmutable<T>(T)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX