Click or drag to resize

UInt24(Byte, Int32) Constructor

Creates 24-bit unsigned integer from three bytes at a specified position in a byte array.

Namespace: GSF
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.253-beta+ffb7163c9e3b771705bc5b9aa3f09870f2cb9e2c
Syntax
public UInt24(
	byte[] value,
	int startIndex
)
View Source

Parameters

value  Byte
An array of bytes.
startIndex  Int32
The starting position within value.
Exceptions
ExceptionCondition
ArgumentNullExceptionvalue cannot be null.
ArgumentOutOfRangeExceptionstartIndex is greater than value length.
ArgumentExceptionvalue length from startIndex is too small to represent a UInt24.
Remarks

You can use this constructor in-lieu of a System.BitConverter.ToUInt24 function.

Bytes endian order assumed to match that of currently executing process architecture (little-endian on Intel platforms).

See Also