20 lines
438 B
C++
Raw Normal View History

2025-02-20 06:23:40 -05:00
// Copyright 2025 xensik. All rights reserved.
2024-02-27 03:09:30 -05:00
//
// Use of this source code is governed by a GNU GPLv3 license
// that can be found in the LICENSE file.
#pragma once
namespace xsk::utils
{
2025-02-20 06:23:40 -05:00
struct zlib
2024-02-27 03:09:30 -05:00
{
2025-02-20 06:23:40 -05:00
using error = std::runtime_error;
2024-02-27 03:09:30 -05:00
static auto compress(std::vector<u8> const& data) -> std::vector<u8>;
static auto decompress(std::vector<u8> const& data, u32 length) -> std::vector<u8>;
};
} // namespace xsk::utils