HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
zlib.hpp
1// Copyright Take Vos 2020.
2// Distributed under the Boost Software License, Version 1.0.
3// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
4
5#pragma once
6
8#include "../byte_string.hpp"
9#include <cstddef>
10#include <filesystem>
11
12namespace hi::inline v1 {
13
14bstring zlib_decompress(std::span<std::byte const> bytes, std::size_t max_size = 0x01000000);
15
16inline bstring zlib_decompress(std::filesystem::path const &path, std::size_t max_size = 0x01000000)
17{
18 return zlib_decompress(as_span<std::byte const>(file_view(path)), max_size);
19}
20
21} // namespace hi::inline v1
Defines the file_view class.
DOXYGEN BUG.
Definition algorithm.hpp:13