Node.js | Buffer.readInt8() Method
The Buffer.readUInt8() method is used to read an unsigned 8-bit integer from a Buffer from a with the specific offset.
Buffer.readInt8( offset )
Parameters: This method accepts single parameter offset which represents the number of bytes to skip before starting to read. The value of offset lies between the range 0 to buffer.length – 1. Its default value is 0.
Return Value: This method returns the 8-bit signed integer value at specified offset.
-2 3 RangeError [ERR_OUT_OF_RANGE]: The value of "offset" is out of range.
82 120 88
Note: Integers that reads from the Buffer are illustrated as two’s complement signed values.