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