Sane C++ Libraries
C++ Platform Abstraction Libraries
ZLibTransformStreams.h
1// Copyright (c) Stefano Cristiano
2// SPDX-License-Identifier: MIT
3#pragma once
4#include "AsyncStreams.h"
5#include "Internal/ZLibStream.h"
6namespace SC
7{
9{
11 ZLibStream stream;
12
13 private:
14 size_t consumedInputBytes = 0;
15
16 Result transform(AsyncBufferView::ID bufferID, Function<void(AsyncBufferView::ID)> cb);
17 bool canEndTransform();
18};
19
21{
22 ZLibStream stream;
24};
25
26} // namespace SC
A stream that can both produce and consume buffers.
Definition: AsyncStreams.h:277
A duplex stream that produces new buffers transforming received buffers.
Definition: AsyncStreams.h:286
Definition: ZLibTransformStreams.h:21
Wraps function pointers, member functions and lambdas without ever allocating.
Definition: Function.h:50
An ascii string used as boolean result. SC_TRY macro forwards errors to caller.
Definition: Result.h:12
Definition: ZLibTransformStreams.h:9