columnarDecompressNativeInput function

Uint8List? columnarDecompressNativeInput(
  1. Pointer<Uint8> compressed,
  2. int compressedLength,
  3. int algorithm
)

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,
  );
}