write static method
Implementation
static int write(String? value, Uint8List buf) {
if (value == null) {
buf[0] = 0;
return 1;
}
buf[0] = 1;
return FfiConverterString.write(
value,
Uint8List.view(buf.buffer, buf.offsetInBytes + 1),
) +
1;
}