LittleEndianGetBytesT(T) Method

Returns the specified value as an array of bytes in the target endian-order.

Definition

Namespace: Gemstone
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.136 -- Release Build+d454dafd53fcce88fce9c0a8ec8597176c30b791
public static byte[] GetBytes<T>(
	T value
)
where T : struct, new(), IConvertible

Parameters

value  T
The value to convert.

Type Parameters

T
Native value type to get bytes for.

Return Value

Byte
An array of bytes with length 1.

Exceptions

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

See Also