Int24(Byte, Int32) Constructor

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

Definition

Namespace: Gemstone.Numeric
Assembly: Gemstone.Numeric (in Gemstone.Numeric.dll) Version: 1.0.128 -- Release Build+8719af24b83815a59535b3885622cedd021e9c5b
public Int24(
	byte[] value,
	int startIndex
)

Parameters

value  Byte
An array of bytes.
startIndex  Int32
The starting position within value.

Remarks

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

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

Exceptions

ArgumentNullExceptionvalue cannot be null.
ArgumentOutOfRangeExceptionstartIndex is greater than value length.
ArgumentExceptionvalue length from startIndex is too small to represent a UInt24.

See Also