|
steam-min-cpp
|
Minimal representation and parser for Valve Data Format (VDF). More...
#include <string>#include <unordered_map>#include <variant>#include <vector>#include <cstdint>Go to the source code of this file.
Classes | |
| struct | Steam::Utils::VDF::VDFNode |
| Node in a VDF tree. More... | |
Typedefs | |
| using | Steam::Utils::VDF::Object = std::unordered_map<std::string, VDFNode> |
| Object node type. | |
| using | Steam::Utils::VDF::Value |
| Value stored in a VDF node. | |
Functions | |
| Object | Steam::Utils::VDF::parse_text (std::string_view text) |
| Parse VDF text into an object tree. | |
| Object | Steam::Utils::VDF::parse_binary (const uint8_t *data, size_t size) |
| Parse binary VDF data. | |
| std::string | Steam::Utils::VDF::stringify (const Object &obj) |
| Convert a VDF object into a human-readable string. | |
Minimal representation and parser for Valve Data Format (VDF).
Provides a lightweight tree structure for reading VDF data used by various Steam APIs such as appinfo and package metadata.
| using Steam::Utils::VDF::Object = std::unordered_map<std::string, VDFNode> |
Object node type.
Represents a dictionary of string keys mapped to VDF nodes.
| using Steam::Utils::VDF::Value |
Value stored in a VDF node.
VDF values may be primitive types or nested objects.
| Object Steam::Utils::VDF::parse_binary | ( | const uint8_t * | data, |
| size_t | size ) |
Parse binary VDF data.
| data | Pointer to binary VDF buffer. |
| size | Size of the buffer in bytes. |
| Object Steam::Utils::VDF::parse_text | ( | std::string_view | text | ) |
Parse VDF text into an object tree.
| text | VDF formatted text. |
|
inline |
Convert a VDF object into a human-readable string.
Useful for debugging or logging VDF structures.