columnarDecompressNativeInput function
Decompresses a columnar payload already owned by native memory.
The pointer must remain readable for compressedLength bytes until this
synchronous call returns. Callers use this only for FFI result buffers;
Dart- and isolate-owned bytes must use columnarDecompressWithNative.
Implementation
Uint8List? columnarDecompressNativeInput(
ffi.Pointer<ffi.Uint8> compressed,
int compressedLength,
int algorithm,
) {
if (compressed.address == 0 ||
compressedLength <= 0 ||
compressedLength > 0x7fffffff) {
return null;
}
return _columnarDecompressNativeInput(
compressed,
compressedLength,
algorithm,
);
}