readUint64 method
Read a 64-bit word form the stream.
Implementation
int readUint64() {
final b1 = buffer[offset++] & 0xff;
final b2 = buffer[offset++] & 0xff;
final b3 = buffer[offset++] & 0xff;
final b4 = buffer[offset++] & 0xff;
final b5 = buffer[offset++] & 0xff;
final b6 = buffer[offset++] & 0xff;
final b7 = buffer[offset++] & 0xff;
final b8 = buffer[offset++] & 0xff;
if (bigEndian) {
return (b1 << 56) |
(b2 << 48) |
(b3 << 40) |
(b4 << 32) |
(b5 << 24) |
(b6 << 16) |
(b7 << 8) |
b8;
}
return (b8 << 56) |
(b7 << 48) |
(b6 << 40) |
(b5 << 32) |
(b4 << 24) |
(b3 << 16) |
(b2 << 8) |
b1;
}