static int write(int value, Uint8List buf) { buf.buffer.asByteData(buf.offsetInBytes).setUint8(0, value); return FfiConverterUInt8.allocationSize(); }