parse_shortcuts

Function parse_shortcuts 

Source
pub fn parse_shortcuts(input: &[u8]) -> Result<Vdf<'_>>
Expand description

Parse shortcuts.vdf format binary data.

This is the simpler binary format used by Steam for shortcuts and other data.

This function returns zero-copy data - strings are borrowed from the input buffer.

Format:

  • Each entry starts with a type byte
  • Type 0x00: Object start (key is the object name)
  • Type 0x01: String value
  • Type 0x02: Int32 value
  • Type 0x08: Object end

All strings are null-terminated.