Click or drag to resize

TransformerTToBytesCore Method (T, Encoding, Byte, Int32)

Transforms instance into a byte array.

Namespace:  Enkoni.Framework.Serialization
Assembly:  Enkoni.Framework.Serialization (in Enkoni.Framework.Serialization.dll) Version: 1.3.0.1
Syntax
protected abstract int ToBytesCore(
	T instance,
	Encoding encoding,
	byte[] bytes,
	int offset
)

Parameters

instance
Type: T
The instance that must be transformed.
encoding
Type: System.TextEncoding
The encoding that must be used to transform the instance into bytes.
bytes
Type: SystemByte
The byte array into which the transformed instance must be stored.
offset
Type: SystemInt32
The offset in bytes.

Return Value

Type: Int32
The number of bytes that were written into bytes.
See Also