M method

MfuncTuple M(
  1. Uint8List candidbytes,
  2. CandidBytes_i start_i
)
override

Implementation

MfuncTuple M(Uint8List candidbytes, CandidBytes_i start_i) {
    Tuple2<Uint8List,CandidBytes_i> leb128_bytes_tuple = find_leb128bytes(candidbytes, start_i);
    int len_utf8_bytes = leb128.decodeUnsigned(leb128_bytes_tuple.item1).toInt();
    CandidBytes_i next_i = leb128_bytes_tuple.item2 + len_utf8_bytes;
    Uint8List utf8_bytes = candidbytes.sublist(leb128_bytes_tuple.item2, next_i);
    return MfuncTuple(Text(utf8.decode(utf8_bytes)), next_i);
}