HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
gzip.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
7#include "../URL.hpp"
8#include "../byte_string.hpp"
9#include "../file_view.hpp"
10#include <cstddef>
11#include <filesystem>
12
13namespace hi::inline v1 {
14
15bstring gzip_decompress(std::span<std::byte const> bytes, std::size_t max_size = 0x01000000);
16
17inline bstring gzip_decompress(std::filesystem::path const &path, std::size_t max_size = 0x01000000)
18{
19 return gzip_decompress(as_span<std::byte const>(file_view{path}), max_size);
20}
21
22} // namespace hi::inline v1
DOXYGEN BUG.
Definition algorithm.hpp:15