getUint64 method
Reads 8-bytes
as an unsigned integer
.
The offset
must satisy the relations 0
≤ offset
≤ offset+8
≤ this.length
.
final Buffer buffer = Buffer.fromList([4, 54, 85, 120, 116, 23, 87, 94]);
final int value = buffer.getUint64(0);
print(value); // 6797927951541548548
Implementation
BigInt getUint64(final int offset, [final Endian endian = Endian.little]) {
return getBigUint(offset, ByteLength.u64, endian);
}