compressAsync function
- @Deprecated('Use ZstandardMacOS.compress with Dart-owned bytes instead.')
Compatibility wrapper that completes after the pointer call returns.
Implementation
@Deprecated('Use ZstandardMacOS.compress with Dart-owned bytes instead.')
Future<int> compressAsync(
Pointer<Void> dst,
int dstCapacity,
Pointer<Void> src,
int srcSize,
int compressionLevel,
) =>
Future<int>.sync(
() => compress(dst, dstCapacity, src, srcSize, compressionLevel),
);