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