Click or drag to resize

NativeBinaryValue(TypeCode, Byte, Int32, Int32) Constructor

Creates a new binary value, ordered in the endianness of the OS, from the given byte array.

Namespace: GSF
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax
public NativeBinaryValue(
	TypeCode typeCode,
	byte[] buffer,
	int startIndex,
	int length
)
View Source

Parameters

typeCode  TypeCode
The type code of the native value that the binary value represents.
buffer  Byte
The buffer which contains the binary representation of the value.
startIndex  Int32
The offset in the buffer where the data starts.
length  Int32
The number of data bytes that make up the binary value.
Exceptions
ExceptionCondition
ArgumentNullExceptionbuffer is null
ArgumentOutOfRangeExceptionstartIndex is outside the range of the buffer -or- length is less than 0 -or- startIndex and length do not specify a valid region in the buffer
See Also