Skip to content

ByteArrayExtensions.GetInt64 Method

Overloads

Name Description
GetInt64(Byte[], Int32) Reads a little-endian Int64 from a byte array at the specified index.
GetInt64(Byte[], Int32, Endian) Reads a Int64 from a byte array at the specified index using the specified endianness.

GetInt64(Byte[], Int32)

Reads a little-endian Int64 from a byte array at the specified index.

public static long GetInt64(this Byte[] bytes, int index);

View source

Parameters

Name Type Description
bytes Byte[]
index Int32 The zero-based index to read from.

Returns

Int64

The Int64 value.

GetInt64(Byte[], Int32, Endian)

Reads a Int64 from a byte array at the specified index using the specified endianness.

public static long GetInt64(this Byte[] bytes, int index, Endian endian);

View source

Parameters

Name Type Description
bytes Byte[]
index Int32 The zero-based index to read from.
endian Endian The endianness to use.

Returns

Int64

The Int64 value.