decompressAsync function

Future<int> decompressAsync(
  1. Pointer<Void> dst,
  2. int dstCapacity,
  3. Pointer<Void> src,
  4. int compressedSize,
)

Implementation

Future<int> decompressAsync(
  Pointer<Void> dst,
  int dstCapacity,
  Pointer<Void> src,
  int compressedSize,
) async {
  final SendPort helperIsolateSendPort = await _helperIsolateSendPort;
  final int requestId = _nextDecompressRequestId++;
  final _DecompressRequest request =
      _DecompressRequest(requestId, dst, dstCapacity, src, compressedSize);
  final Completer<int> completer = Completer<int>();
  _decompressRequests[requestId] = completer;
  helperIsolateSendPort.send(request);
  return completer.future;
}