getFiveBytesLong static method
Converts five bytes of a byte array to a 40-bit integer.
The byte order is big-endian.
Implementation
static int getFiveBytesLong(List<int> buffer, int offset) {
return (buffer[offset] & 0xff) << 32 |
(buffer[offset + 1] & 0xff) << 24 |
(buffer[offset + 2] & 0xff) << 16 |
(buffer[offset + 3] & 0xff) << 8 |
(buffer[offset + 4] & 0xff);
}