Skip to content
API Documentation
BastionGuard™
hfs_decmpfs.hpp File Reference

Go to the source code of this file.

Classes

struct  hfs::DecmpfsHeader

Namespaces

namespace  hfs

Functions

bool hfs::parse_decmpfs_header (const unsigned char *buf, DecmpfsHeader &out)
const char * hfs::decmpfs_type_name (uint32_t type)
bool hfs::decmpfs_supported (uint32_t type)
bool hfs::decompress_resource_fork_zlib (const unsigned char *rsrc_buf, size_t rsrc_len, uint64_t expected_uncompressed_size, std::vector< unsigned char > &out, std::string &error)
bool hfs::decompress_xattr_zlib (const unsigned char *xattr_buf, size_t xattr_len, uint64_t expected_uncompressed_size, std::vector< unsigned char > &out, std::string &error)

Variables

constexpr uint32_t hfs::DECMPFS_MAGIC = 0x66706D63
constexpr size_t hfs::DECMPFS_HEADER_SIZE = 16
constexpr size_t hfs::kDecmpfsBlockSize = 64 * 1024
constexpr uint32_t hfs::kCompressionType_None = 1
constexpr uint32_t hfs::kCompressionType_ZlibInXattr = 3
constexpr uint32_t hfs::kCompressionType_ZlibInRsrc = 4
constexpr uint32_t hfs::kCompressionType_LzvnInXattr = 7
constexpr uint32_t hfs::kCompressionType_LzvnInRsrc = 8
constexpr uint32_t hfs::kCompressionType_LzfseInXattr = 11
constexpr uint32_t hfs::kCompressionType_LzfseInRsrc = 12