M method

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

Implementation

MfuncTuple M(Uint8List candidbytes, CandidBytes_i start_i) {
    // String nat32_asabitstring = '';
    // for (CandidBytes_i nat32_byte_i=start_i;nat32_byte_i<start_i+4;nat32_byte_i++) {
    //     nat32_asabitstring += candidbytes[nat32_byte_i].toRadixString(2);
    // }
    // int value = int.parse(nat32_asabitstring, radix: 2);

    int v = ByteData.sublistView(candidbytes, start_i, start_i+4).getUint32(0, Endian.little);
    MfuncTuple m_func_tuple = MfuncTuple(Nat32(v), start_i+4);
    return m_func_tuple;
}