ValvePython / vdf

📜 Package for working with Valve's text and binary KeyValue format
https://pypi.org/project/vdf/
MIT License
167 stars 31 forks source link

Alternative binary keyvalue #11

Closed rossengeorgiev closed 7 years ago

rossengeorgiev commented 7 years ago

The alternative format uses 0x0b as END instead of 0x08, otherwise it exactly the same. I have no idea why that is. Is it a programming typo, 0x0B looks like 0x08? Maybe it's supposed to be different. Say a format for on disk, rather than just data interchange over the steam network. Explains the CRC32, but why change the format?

Samples files:

rossengeorgiev commented 7 years ago

I think 0x0B might refer be used for object instances, and 0x08 for keyvalue. Essentially for (de)serialization of an object, like a protobuf message, to binary kv