write static method

int write(
  1. String? value,
  2. Uint8List buf
)

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;
}