AUI Framework  master
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
LZ.h
    1/*
    2 * AUI Framework - Declarative UI toolkit for modern C++20
    3 * Copyright (C) 2020-2025 Alex2772 and Contributors
    4 *
    5 * SPDX-License-Identifier: MPL-2.0
    6 *
    7 * This Source Code Form is subject to the terms of the Mozilla Public
    8 * License, v. 2.0. If a copy of the MPL was not distributed with this
    9 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
   10 */
   11
   12#pragma once
   13
   14#include "AUI/Core.h"
   15#include "AUI/Common/AException.h"
   16#include "AUI/IO/IInputStream.h"
   17
   18#include <AUI/IO/APath.h>
   19#include <AUI/IO/ISeekableInputStream.h>
   20
   21class AByteBuffer;
   22
   23class AByteBufferView;
   24
   25class AZLibException : public AException {
   26public:
   27    AZLibException() {}
   28
   29    AZLibException(const AString& message) : AException(message) {}
   30};
   31
   32namespace aui::zlib {
   33void API_AUI_CORE compress(AByteBufferView b, AByteBuffer& dst);
   34void API_AUI_CORE decompress(AByteBufferView b, AByteBuffer& dst);
   35_unique<IInputStream> API_AUI_CORE decompressToStream(AByteBufferView b);
   36
   37}   // namespace aui::zlib
Acts like std::string_view but for AByteBuffer.
Definition AByteBufferView.h:24
std::vector-like growing array for byte storage.
Definition AByteBuffer.h:31
Represents a Unicode character string.
Definition AString.h:38