lightningbolt/lib/bolt/Compression.hpp

14 lines
399 B
C++
Raw Normal View History

#pragma once
#include <base/Types.hpp>
#include <base/ErrorOr.hpp>
#include <vector>
namespace lightningbolt {
/// Decompress a compressed BOLT file into a new allocated buffer.
/// TODO: this should probably be passed a file object, but for now,
/// just passing bare parameters works.
ErrorOr<std::vector<u8>> BoltDecompress(u8* input, usize decompressedSize);
} // namespace lightningbolt