decompressAsync function
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;
}