Parses an integer from a buffer gives the number of bytes, endianness, signedness and offset.
The buffer to read from.
The number of bytes to read.
The endianness of the data.
The signedness of the data. Defaults to false.
false
The offset to read from. Defaults to 0.
0
The parsed integer.
If the byte length is less than 1.
If the buffer does not contain enough data at the specified offset.
Parses an integer from a buffer gives the number of bytes, endianness, signedness and offset.