|
| operator const char * () const noexcept |
| Access the character code as an char array.
|
|
| operator char * () noexcept |
| Access the character code as an char array.
|
|
| operator uint32_t () const noexcept |
| Read the four character code as an integer.
|
|
FourCharacterCode_t & | operator= (uint32_t uInput) noexcept |
| Assign a four character code with an integer.
|
|
uint32_t | GetCode (void) const noexcept |
| Read the four character code as an integer.
|
|
void | SetCode (uint32_t uInput) noexcept |
| Assign a four character code with an integer.
|
|
Helper structure to create 4 characters codes.
On some platforms and file formats, a four character code is stored in a big endian 32 bit integer. To ensure these codes are generated in a platform neutral way, this structure is used to statically create a code that can be translated directly into a 32 bit value that can be used to directly to a single integer comparison for testing codes.
uint32_t MatchAIFF(const void *pData)
{
return static_cast<const uint32_t *>(pData)[0] == AIFFCode;
}
Helper structure to create 4 characters codes.
Definition burger.h:12466