getUint8 method
Reads 1-byte
as an unsigned integer
.
The offset
must satisy the relations 0
≤ offset
≤ offset+1
≤ this.length
.
final Buffer buffer = Buffer.fromList([128]);
final int value = buffer.getUint8(0);
print(value); // 128
Implementation
int getUint8(final int offset) {
return asByteData().getUint8(offset);
}