wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
Loading...
Searching...
No Matches
fourcc.hpp File Reference

FourCC chunk identifiers: compile-time conversion of the four-letter codes to the host integers chunk scanning compares against, and back for diagnostics. More...

#include <array>
#include <cstdint>
#include <string>
Include dependency graph for fourcc.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  wowlib
namespace  wowlib::formats

Enumerations

enum class  wowlib::formats::FourCCEndian : std::uint8_t { wowlib::formats::Reversed , wowlib::formats::Forward }
 How a chunk's FourCC characters are laid out on disk. More...

Functions

constexpr std::uint32_t wowlib::formats::fourcc (const char(&cc)[5], FourCCEndian endian=FourCCEndian::Reversed)
 The host integer a scanned chunk id compares equal to for code cc.
constexpr std::string wowlib::formats::fourccToString (std::uint32_t fourcc, FourCCEndian endian=FourCCEndian::Reversed)
 The readable four-character spelling of a scanned chunk id.

Detailed Description

FourCC chunk identifiers: compile-time conversion of the four-letter codes to the host integers chunk scanning compares against, and back for diagnostics.

Definition in file fourcc.hpp.