SourcePP
Several modern C++20 libraries for sanely parsing Valve's formats.
Loading...
Searching...
No Matches
VPK.h File Reference
#include <array>
#include "../PackFile.h"
Include dependency graph for VPK.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  vpkpp::VPK
 
struct  vpkpp::VPK::Header1
 
struct  vpkpp::VPK::Header2
 
struct  vpkpp::VPK::Footer2
 
struct  vpkpp::VPK::MD5Entry
 
struct  vpkpp::VPK::FreedChunk
 

Namespaces

namespace  vpkpp
 

Variables

constexpr uint32_t vpkpp::VPK_SIGNATURE = 0x55aa1234
 
constexpr uint16_t vpkpp::VPK_DIR_INDEX = 0x7fff
 
constexpr uint16_t vpkpp::VPK_ENTRY_TERM = 0xffff
 
constexpr std::string_view vpkpp::VPK_DIR_SUFFIX = "_dir"
 
constexpr std::string_view vpkpp::VPK_EXTENSION = ".vpk"
 
constexpr std::string_view vpkpp::VPK_KEYPAIR_PUBLIC_KEY_TEMPLATE = "public_key\n{\n\ttype \"rsa\"\n\trsa_public_key \"%s\"\n}\n"
 
constexpr std::string_view vpkpp::VPK_KEYPAIR_PRIVATE_KEY_TEMPLATE = "private_key\n{\n\ttype \"rsa\"\n\trsa_private_key \"%s\"\n\tprivate_key_encrypted 0\n\tpublic_key\n\t{\n\t\ttype \"rsa\"\n\t\trsa_public_key \"%s\"\n\t}\n}\n"
 
constexpr uint16_t vpkpp::VPK_MAX_PRELOAD_BYTES = 1024
 Maximum preload data size in bytes.
 
constexpr uint32_t vpkpp::VPK_DEFAULT_CHUNK_SIZE = 200 * 1024 * 1024
 Chunk size in bytes (default is 200mb)