Skip to content

ByteReadOnlySpanExtensions.GetInt64 Method

Overloads

Name Description
GetInt64(ReadOnlySpan<Byte>) Reads a little-endian Int64 from a read-only span of bytes.
GetInt64(ReadOnlySpan<Byte>, Endian) Reads a Int64 from a read-only span of bytes using the specified endianness.

GetInt64(ReadOnlySpan<Byte>)

Reads a little-endian Int64 from a read-only span of bytes.

public static long GetInt64(this ReadOnlySpan<Byte> bytes);

View source

Parameters

Name Type Description
bytes ReadOnlySpan<Byte>

Returns

Int64

The Int64 value.

GetInt64(ReadOnlySpan<Byte>, Endian)

Reads a Int64 from a read-only span of bytes using the specified endianness.

public static long GetInt64(this ReadOnlySpan<Byte> bytes, Endian endian);

View source

Parameters

Name Type Description
bytes ReadOnlySpan<Byte>
endian Endian The endianness to use.

Returns

Int64

The Int64 value.