Gemstone Common Library
Show/Hide TOC

# BigEndianToUInt64(Byte*) Method

Returns a 64-bit unsigned 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.178 -- Release Build+f8a23028fef00502c7e35bcc3934c260e8a0eb56
C#
View Source Request Example

    public static ulong ToUInt64(
    	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 unsigned long long ToUInt64(
    	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

UInt64
A 64-bit unsigned 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

BigEndian Class
ToUInt64 Overload
Gemstone Namespace