Crate gma_lite

Crate gma_lite 

Source
Expand description

Minimal GMA Library.

Format:

  • “GMAD” header (4 bytes)
  • VERSION (int8) == 3
  • steam_id64 (little-endian i64) [ignored]
  • timestamp (little-endian u64) [ignored]
  • required content (u8 = 0) [ignored]
  • addon name (C string)
  • addon description (C string)
  • addon author (C string)
  • addon version (little-endian i32) [ignored]
  • Repeated file metadata entries until idx == 0:
    • idx (u32, 1-based; 0 terminates the list)
    • name (C string)
    • size (i64)
    • crc32 (u32) [ignored]
  • File contents, concatenated in metadata order
  • trailing u32 zero

Structs§

Builder
Builder for writing .gma archives.
GMAFile
One entry (file) contained in a GMA.

Enums§

GmaError
Errors that can occur while reading a GMA.

Constants§

HEADER
Magic header for GMA files.
VERSION
File format version.

Functions§

read
Read a GMA from any Read. Returns the list of entries with names and contents.