Gemstone Common Library
Show/Hide TOC

# LittleEndianToInt32(Byte*) Method

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

## Definition

Namespace: Gemstone
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.172 -- Release Build+241430fabc9f8d815f226ef82f939af6835b2b48
C#
View Source Request Example

    public static int ToInt32(
    	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 int ToInt32(
    	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

Int32
A 32-bit signed integer formed by four 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
ToInt32 Overload
Gemstone Namespace