Click or drag to resize

NativeBinaryValue(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(
	byte[] buffer,
	int startIndex,
	int length
)
View Source

Parameters

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
Remarks
This constructor assumes a type code of Empty to represent "undefined".
See Also