Serializes the object specified.

Namespace: Hypertable.Persistence.Serialization
Assembly: ht4o (in ht4o.dll) Version: 0.9.8.11 (0.9.8.11)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static byte[] ToByteArray<T>(
	T value,
	int capacity
)
Public Shared Function ToByteArray(Of T) ( _
	value As T, _
	capacity As Integer _
) As Byte()
public:
generic<typename T>
static array<unsigned char>^ ToByteArray(
	T value, 
	int capacity
)

Parameters

value
T
The object to serialize.
capacity
Int32
The internal memory stream initial capacity.

Type Parameters

T
Type of the object to serialize.

Return Value

The serialized object.

See Also