LittleEndianCopyBytesT(T, Byte*) Method

Copies the specified primitive type value as an array of bytes in the target endian-order to the destination array.

Definition

Namespace: Gemstone
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
public static int CopyBytes<T>(
	T value,
	byte* destination
)
where T : struct, new(), IConvertible

Parameters

value  T
The Boolean value to convert and copy.
destination  Byte*
The destination buffer.

Type Parameters

T
Native value type to get bytes for.

Return Value

Int32
Length of bytes copied into array based on size of T.

Exceptions

ArgumentExceptionvalue type is not primitive.
InvalidOperationExceptionCannot get bytes for value type.

See Also