Gemstone Common Library
Show/Hide TOC

# EndianOrderToInt64 Method

Returns a 64-bit signed integer converted from eight 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.176 -- Release Build+c74560d581224bfee7a285d73926fb4fb3df8ece
C#
View Source Request Example

    public long ToInt64(
    	byte[] value,
    	int startIndex
    )

VB
View Source Request Example

    Public Function ToInt64 (
    	value As Byte(),
    	startIndex As Integer
    ) As Long

C++
View Source Request Example

    public:
    long long ToInt64(
    	array<unsigned char>^ value,
    	int startIndex
    )

JavaScript
View Source Request Example

    function ToInt64(value, startIndex);

#### Parameters

value Byte
  An array of bytes (i.e., buffer containing binary image of value).
startIndex Int32
  The starting position within value.

#### Return Value

Int64
A 64-bit signed integer formed by eight 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

EndianOrder Class
Gemstone Namespace