Reads the data from the buffer by reinterpreting bytes at the offset as a 16-bit unsigned integer and converting it into a number.
Offset from the beginning of the buffer memory, starting from 0.