Gemstone Numeric Library
Show/Hide TOC

# LittleEndianToInt24(Byte*) Method

Returns a 24-bit signed integer converted from three bytes, accounting for target endian-order, at a specified position in a byte array.

## Definition

Namespace: Gemstone.Numeric.Int24Extensions
Assembly: Gemstone.Numeric (in Gemstone.Numeric.dll) Version: 1.0.160 -- Release Build+79afb0c87bd1bdc550b0321e3623ddc7648c3bfe
C#
View Source Request Example

    public static Int24 ToInt24(
    	byte* buffer
    )

VB
View Source Request Example

    Visual Basic does not support APIs that consume or return unsafe types.

C++
View Source Request Example

    public:
    static Int24 ToInt24(
    	unsigned char* buffer
    )

JavaScript
View Source Request Example

    JavaScript does not support APIs that consume or return unsafe types.

#### Parameters

buffer Byte*
  An array of bytes (i.e., buffer containing binary image of value).

#### Return Value

Int24
A 24-bit signed integer formed by three bytes beginning at startIndex.

## Exceptions

ArgumentNullException | value is null.
ArgumentOutOfRangeException | startIndex is less than zero or greater than the length of value minus 1.

## See Also

#### Reference

LittleEndian Class
ToInt24 Overload
Gemstone.Numeric.Int24Extensions Namespace