Uniot Core
0.8.1
Loading...
Searching...
No Matches
FourCC< a, b, c, d > Struct Template Reference

Creates a four-character code (FourCC) value from template parameters. More...

#include <Common.h>

Static Public Attributes

static const uint32_t Value = (((((d << 8) | c) << 8) | b) << 8) | a
 

Detailed Description

template<int a, int b, int c, int d>
struct FourCC< a, b, c, d >

Creates a four-character code (FourCC) value from template parameters.

FourCC is commonly used for creating unique identifiers from four ASCII characters. This template packs four 8-bit integers into a single 32-bit integer.

Template Parameters
aFirst character (least significant byte)
bSecond character
cThird character
dFourth character (most significant byte)

Member Data Documentation

◆ Value

template<int a, int b, int c, int d>
const uint32_t FourCC< a, b, c, d >::Value = (((((d << 8) | c) << 8) | b) << 8) | a
static

The documentation for this struct was generated from the following file: