Module nom_mpq::parser

source ·
Expand description

Nom Parsing the MPQ file format

NOTES:

  • All numbers in the MoPaQ format are in little endian byte order
  • Signed numbers use the two’s complement system.
  • Structure members are listed in the following general form:
    • offset from the beginning of the structure: data type(array size) member name : member description

Re-exports§

Modules§

Enums§

  • Different HashTypes used in MPQ Archives, they are used to identify embedded filenames.
  • The type of sections that are available in an MPQ archive

Constants§

Statics§

Functions§

  • Gets the header type from the MPQ file
  • Parses the whole input into an MPQ
  • A helper function that shows only up to the first 8 bytes of an u8 slice in xxd format.
  • Convenience function to read a file to parse, mostly for testing.
  • Reads the file headers, headers must contain the Archive File Header but they may optionally contain the User Data Headers.