Edit

Share via


BinaryTokenStreamWriter Class

Definition

Writer for Orleans binary token streams

public class BinaryTokenStreamWriter
public class BinaryTokenStreamWriter : Orleans.Serialization.IBinaryTokenStreamWriter
type BinaryTokenStreamWriter = class
type BinaryTokenStreamWriter = class
    interface IBinaryTokenStreamWriter
Public Class BinaryTokenStreamWriter
Public Class BinaryTokenStreamWriter
Implements IBinaryTokenStreamWriter
Inheritance
BinaryTokenStreamWriter
Implements

Constructors

BinaryTokenStreamWriter()

Default constructor.

Properties

CurrentOffset

Current write position in the stream.

Methods

ReleaseBuffers()

Release any serialization buffers being used by this stream.

ToByteArray()

Return the output stream as a byte[].

ToBytes()

Return the output stream as a set of ArraySegment.

TryWriteSimpleObject(Object)

Try to write a simple type (non-array) value to the stream.

Write(Boolean)

Write a bool value to the stream.

Write(Boolean[])

Write a bool[] value to the stream.

Write(Byte)

Write a byte value to the stream.

Write(Byte[], Int32, Int32)

Write the specified number of bytes to the stream, starting at the specified offset in the input byte[].

Write(Byte[])

Write a byte[] value to the stream.

Write(Char)

Write a char value to the stream.

Write(Char[])

Write a char[] value to the stream.

Write(DateTime)

Write a DataTime value to the stream.

Write(Decimal)

Write a decimal value to the stream.

Write(Double)

Write a double value to the stream.

Write(Double[])

Write a double[] value to the stream.

Write(Guid)

Write a Guid value to the stream.

Write(Int16)

Write an Int16 value to the stream.

Write(Int16[])

Write a Int16[] value to the stream.

Write(Int32)

Write an Int32 value to the stream.

Write(Int32[])

Write a Int32[] value to the stream.

Write(Int64)

Write an Int64 value to the stream.

Write(Int64[])

Write a Int64[] value to the stream.

Write(IPAddress)

Write a IPAddress value to the stream.

Write(IPEndPoint)

Write a IPEndPoint value to the stream.

Write(List<ArraySegment<Byte>>)

Write a list of byte array segments to the stream.

Write(SByte)

Write a sbyte value to the stream.

Write(SByte[])

Write a sbyte[] value to the stream.

Write(SiloAddress)

Write a SiloAddress value to the stream.

Write(Single)

Write a float value to the stream.

Write(Single[])

Write a float[] value to the stream.

Write(String)

Write a string value to the stream.

Write(TimeSpan)

Write a TimeSpan value to the stream.

Write(UInt16)

Write a UInt16 value to the stream.

Write(UInt16[])

Write a UInt16[] value to the stream.

Write(UInt32)

Write a UInt32 value to the stream.

Write(UInt32[])

Write a UInt32[] value to the stream.

Write(UInt64)

Write a UInt64 value to the stream.

Write(UInt64[])

Write a UInt64[] value to the stream.

WriteNull()

Write a null value to the stream.

WriteTypeHeader(Type, Type)

Write a type header for the specified Type to the stream.

Applies to