create method

void create(
  1. String session_key
)

Implementation

void create(String session_key) {
  final units = utf8.encode(session_key);
  final mem = malloc.call<Uint8>(units.length);
  try {
    mem.asTypedList(units.length).setAll(0, units);
    olm_init_inbound_group_session(_inst, mem, units.length);
  } finally {
    malloc.free(mem);
  }
}