Scoop API

scoop:scoop.compression:0.1.0

scoop.compression.asyncio

API

  • class AsyncCompressionSink

    A suspending compression sink adapter with bounded buffering. The ordinary constructor borrows its endpoint; takeOwnership also assumes endpoint close responsibility. I/O waits suspend; codec computation remains local. Cancellation cleanup waits for active operations. Call finish for successful completion; close alone does not finish the format.

  • class AsyncCompressionSource

    A suspending compression source adapter with bounded buffering. The ordinary constructor borrows its endpoint; takeOwnership also assumes endpoint close responsibility. I/O waits suspend; codec computation remains local. Cancellation cleanup waits for active operations. Reading to EOF completes format validation; early close does not.

  • class AsyncDecompressionSink

    A suspending decompression sink adapter with bounded buffering. The ordinary constructor borrows its endpoint; takeOwnership also assumes endpoint close responsibility. I/O waits suspend; codec computation remains local. Cancellation cleanup waits for active operations. Call finish for successful completion; close alone does not finish the format.

  • class AsyncDecompressionSource

    A suspending decompression source adapter with bounded buffering. The ordinary constructor borrows its endpoint; takeOwnership also assumes endpoint close responsibility. I/O waits suspend; codec computation remains local. Cancellation cleanup waits for active operations. Reading to EOF completes format validation; early close does not.

  • function compressTo

    Copies a byte source through an encoder into the destination, finishes it, and returns actual byte totals. The source and destination remain borrowed.

  • function decompressTo

    Copies and validates a complete compressed stream into the destination, returning actual byte totals. The source and destination remain borrowed.