playground-sdk/core/inflate.h

10 lines
310 B
C++

#pragma once
#include <cstddef>
#include <cstdint>
#include <vector>
namespace playground {
using Bytes = std::vector<uint8_t>;
// Decode a zlib (RFC1950) stream. Returns false on malformed input.
bool zlibInflate(const uint8_t* src, size_t n, Bytes& out, size_t expectedSize = 0);
} // namespace playground