Skip to content

ByteIReadOnlyListExtensions.GetInt32 Method

Overloads

Name Description
GetInt32(IReadOnlyList<Byte>, Int32) Reads a little-endian Int32 from a read-only list of bytes at the specified index.
GetInt32(IReadOnlyList<Byte>, Int32, Endian) Reads an Int32 from a read-only list of bytes at the specified index using the specified endianness.

GetInt32(IReadOnlyList<Byte>, Int32)

Reads a little-endian Int32 from a read-only list of bytes at the specified index.

public static int GetInt32(this IReadOnlyList<Byte> bytes, int index);

View source

Parameters

Name Type Description
bytes IReadOnlyList<Byte>
index Int32 The zero-based index to read from.

Returns

Int32

The Int32 value.

GetInt32(IReadOnlyList<Byte>, Int32, Endian)

Reads an Int32 from a read-only list of bytes at the specified index using the specified endianness.

public static int GetInt32(this IReadOnlyList<Byte> bytes, int index, Endian endian);

View source

Parameters

Name Type Description
bytes IReadOnlyList<Byte>
index Int32 The zero-based index to read from.
endian Endian The endianness to use.

Returns

Int32

The Int32 value.