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