readULEB method

int readULEB()

Read ULEB value - an integer of varying size. Used for enum indexes and vector lengths.

Implementation

int readULEB() {
  int start = _bytePosition + _dataView.offsetInBytes;
  final buffer = Uint8List.view(_dataView.buffer, start);
  final (value, length) = ulebDecode(buffer);

  shift(length);

  return value;
}