getUint8 method

int getUint8(
  1. int offset
)

Reads 1-byte as an unsigned integer.

The offset must satisy the relations 0offsetoffset+1this.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);
}