Skip to content

ReadOnlyMemoryExtensions.GetInt64 Method ​

Overloads ​

NameDescription
GetInt64(ReadOnlyMemory<Byte>, Int32)Reads a little-endian Int64 from read-only memory at the specified index.
GetInt64(ReadOnlyMemory<Byte>, Int32, Endian)Reads a Int64 from read-only memory at the specified index using the specified endianness.

GetInt64(ReadOnlyMemory<Byte>, Int32) ​

Reads a little-endian Int64 from read-only memory at the specified index.

c#
public static long GetInt64(this ReadOnlyMemory<Byte> bytes, int index);

View source

Parameters ​

NameTypeDescription
bytesReadOnlyMemory<Byte>
indexInt32The zero-based index to read from.

Returns ​

Int64

The Int64 value.

GetInt64(ReadOnlyMemory<Byte>, Int32, Endian) ​

Reads a Int64 from read-only memory at the specified index using the specified endianness.

c#
public static long GetInt64(this ReadOnlyMemory<Byte> bytes, int index, Endian endian);

View source

Parameters ​

NameTypeDescription
bytesReadOnlyMemory<Byte>
indexInt32The zero-based index to read from.
endianEndianThe endianness to use.

Returns ​

Int64

The Int64 value.