Click or drag to resize

BigEndianGetBytesT(T) Method

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

Namespace: GSF
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.191-beta+925724bd48239ba1d4417fe63f8c4977892ab734
Syntax
public static byte[] GetBytes<T>(
	T value
)
where T : struct, new(), IConvertible
View Source

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
ExceptionCondition
ArgumentExceptionvalue type is not primitive.
InvalidOperationExceptionCannot get bytes for value type.
See Also