IStateSerializer<T>.Write Method

Definition

Overloads

Write(T, BinaryWriter)

Serializes a value and writes it to the given System.IO.BinaryWriter.

Write(T, T, BinaryWriter)

Serializes an object and writes it to the given System.IO.BinaryWriter.

Write(T, BinaryWriter)

Serializes a value and writes it to the given System.IO.BinaryWriter.

public void Write (T value, System.IO.BinaryWriter binaryWriter);
abstract member Write : 'T * System.IO.BinaryWriter -> unit

Parameters

value
T

The value to serialize.

binaryWriter
System.IO.BinaryWriter

The System.IO.BinaryWriter to serialize to.

Remarks

When accessing the System.IO.BinaryWriter base stream, care must be taken when moving the position in the stream. Writing must begin at the current stream position and end at the current position plus the length of your data.

Applies to

Write(T, T, BinaryWriter)

Serializes an object and writes it to the given System.IO.BinaryWriter.

public void Write (T baseValue, T targetValue, System.IO.BinaryWriter binaryWriter);
abstract member Write : 'T * 'T * System.IO.BinaryWriter -> unit

Parameters

baseValue
T

The base value for the serialization.

targetValue
T

The value to serialize.

binaryWriter
System.IO.BinaryWriter

The System.IO.BinaryWriter to serialize to.

Remarks

When accessing the System.IO.BinaryWriter base stream, care must be taken when moving the position in the stream. Writing must begin at the current stream position and end at the current position plus the length of your data.

Applies to