Skip to content

ByteIListExtensions.GetInt16 Method

Overloads

Name Description
GetInt16(IList<Byte>, Int32) Reads a little-endian Int16 from a list of bytes at the specified index.
GetInt16(IList<Byte>, Int32, Endian) Reads a Int16 from a list of bytes at the specified index using the specified endianness.

GetInt16(IList<Byte>, Int32)

Reads a little-endian Int16 from a list of bytes at the specified index.

public static Int16 GetInt16(this IList<Byte> bytes, int index);

View source

Parameters

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

Returns

Int16

The Int16 value.

GetInt16(IList<Byte>, Int32, Endian)

Reads a Int16 from a list of bytes at the specified index using the specified endianness.

public static Int16 GetInt16(this IList<Byte> bytes, int index, Endian endian);

View source

Parameters

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

Returns

Int16

The Int16 value.