compressAsync function

  1. @Deprecated('Use ZstandardMacOS.compress with Dart-owned bytes instead.')
Future<int> compressAsync(
  1. Pointer<Void> dst,
  2. int dstCapacity,
  3. Pointer<Void> src,
  4. int srcSize,
  5. int compressionLevel,
)

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