writeLog method
Log the entry to the rust logging
Implementation
void writeLog(
String target,
String level,
String message,
String? file,
int? line,
String? modulePath,
) {
final tmp0 = target;
final tmp4 = level;
final tmp8 = message;
final tmp12 = file;
final tmp18 = line;
final tmp22 = modulePath;
var tmp1 = 0;
var tmp2 = 0;
var tmp3 = 0;
var tmp5 = 0;
var tmp6 = 0;
var tmp7 = 0;
var tmp9 = 0;
var tmp10 = 0;
var tmp11 = 0;
var tmp13 = 0;
var tmp15 = 0;
var tmp16 = 0;
var tmp17 = 0;
var tmp19 = 0;
var tmp21 = 0;
var tmp23 = 0;
var tmp25 = 0;
var tmp26 = 0;
var tmp27 = 0;
final tmp0_0 = utf8.encode(tmp0);
tmp2 = tmp0_0.length;
final ffi.Pointer<ffi.Uint8> tmp1_0 = this.__allocate(tmp2 * 1, 1);
final Uint8List tmp1_1 = tmp1_0.asTypedList(tmp2);
tmp1_1.setAll(0, tmp0_0);
tmp1 = tmp1_0.address;
tmp3 = tmp2;
final tmp4_0 = utf8.encode(tmp4);
tmp6 = tmp4_0.length;
final ffi.Pointer<ffi.Uint8> tmp5_0 = this.__allocate(tmp6 * 1, 1);
final Uint8List tmp5_1 = tmp5_0.asTypedList(tmp6);
tmp5_1.setAll(0, tmp4_0);
tmp5 = tmp5_0.address;
tmp7 = tmp6;
final tmp8_0 = utf8.encode(tmp8);
tmp10 = tmp8_0.length;
final ffi.Pointer<ffi.Uint8> tmp9_0 = this.__allocate(tmp10 * 1, 1);
final Uint8List tmp9_1 = tmp9_0.asTypedList(tmp10);
tmp9_1.setAll(0, tmp8_0);
tmp9 = tmp9_0.address;
tmp11 = tmp10;
if (tmp12 == null) {
tmp13 = 0;
} else {
tmp13 = 1;
final tmp14 = tmp12;
final tmp14_0 = utf8.encode(tmp14);
tmp16 = tmp14_0.length;
final ffi.Pointer<ffi.Uint8> tmp15_0 = this.__allocate(tmp16 * 1, 1);
final Uint8List tmp15_1 = tmp15_0.asTypedList(tmp16);
tmp15_1.setAll(0, tmp14_0);
tmp15 = tmp15_0.address;
tmp17 = tmp16;
}
if (tmp18 == null) {
tmp19 = 0;
} else {
tmp19 = 1;
final tmp20 = tmp18;
tmp21 = tmp20;
}
if (tmp22 == null) {
tmp23 = 0;
} else {
tmp23 = 1;
final tmp24 = tmp22;
final tmp24_0 = utf8.encode(tmp24);
tmp26 = tmp24_0.length;
final ffi.Pointer<ffi.Uint8> tmp25_0 = this.__allocate(tmp26 * 1, 1);
final Uint8List tmp25_1 = tmp25_0.asTypedList(tmp26);
tmp25_1.setAll(0, tmp24_0);
tmp25 = tmp25_0.address;
tmp27 = tmp26;
}
_writeLog(
tmp1,
tmp2,
tmp3,
tmp5,
tmp6,
tmp7,
tmp9,
tmp10,
tmp11,
tmp13,
tmp15,
tmp16,
tmp17,
tmp19,
tmp21,
tmp23,
tmp25,
tmp26,
tmp27,
);
return;
}