xoreos
0.0.5
|
Low-level type definitions to handle fixed width types portably. More...
#include <cstddef>
#include <climits>
Go to the source code of this file.
Macros | |
#define | SIZE_MAX ((size_t) -1) |
#define | PRId64 "lld" |
#define | Cd64(x) ((signed long long) (x)) |
#define | PRIu64 "llu" |
#define | Cu64(x) ((unsigned long long) (x)) |
#define | INT64_C(c) (c ## LL) |
#define | UINT64_C(c) (c ## ULL) |
#define | UINT8_MAX 0xFF |
#define | UINT16_MAX 0xFFFF |
#define | UINT32_MAX 0xFFFFFFFF |
#define | UINT64_MAX UINT64_C(0xFFFFFFFFFFFFFFFF) |
#define | INT8_MAX 0x7F |
#define | INT16_MAX 0x7FFF |
#define | INT32_MAX 0x7FFFFFFF |
#define | INT64_MAX INT64_C(0x7FFFFFFFFFFFFFFF) |
#define | INT8_MIN (-INT8_MAX - 1) |
#define | INT16_MIN (-INT16_MAX - 1) |
#define | INT32_MIN (-INT32_MAX - 1) |
#define | INT64_MIN (-INT64_MAX - INT64_C(1)) |
Typedefs | |
typedef int8_t | int8 |
typedef uint8_t | uint8 |
typedef int16_t | int16 |
typedef uint16_t | uint16 |
typedef int32_t | int32 |
typedef uint32_t | uint32 |
typedef int64_t | int64 |
typedef uint64_t | uint64 |
typedef uint8 | byte |
typedef unsigned int | uint |
Low-level type definitions to handle fixed width types portably.
Definition in file types.h.
#define SIZE_MAX ((size_t) -1) |
Definition at line 172 of file types.h.
Referenced by Engines::NWN::CharSpells::CharSpells(), Engines::NWN::WidgetListItemVoice::deactivate(), Sound::WwiseSoundBank::findFileByID(), Sound::WwiseSoundBank::findSoundByID(), Sound::WwiseSoundBank::getFileData(), Aurora::OBBFile::getIndex(), Sound::WwRIFFVorbisStream::init(), Engines::NWN::OptionsResolutionMenu::initResolutionsBox(), Common::ZipFile::load(), Sound::WwiseSoundBank::load(), Common::searchBackwards(), Engines::NWN::WidgetListItemVoice::WidgetListItemVoice(), and Aurora::TwoDAFile::writeBinary().
#define UINT32_MAX 0xFFFFFFFF |
Definition at line 231 of file types.h.
Referenced by Aurora::SSFFile::checkVersionFeatures(), Aurora::SSFFile::readSSFHeader(), Aurora::SSFFile::setSound(), Aurora::SSFFile::setSoundFile(), Aurora::SSFFile::setStrRef(), and Aurora::SSFFile::writeNWN().
#define UINT64_C | ( | c | ) | (c ## ULL) |
Definition at line 220 of file types.h.
Referenced by readNintendoFixedPoint().
#define UINT8_MAX 0xFF |
Definition at line 225 of file types.h.
Referenced by Engines::NWN::CharGenChoices::applyChoices(), Engines::NWN::CharPackage::createPackageList(), Engines::NWN::Creature::getDomains(), Engines::NWN::CharGenChoices::getPrefDomains(), Engines::NWN::CharGenChoices::getPrefFeats(), Engines::NWN::CharGenChoices::getPrefSkills(), Engines::NWN::CharGenChoices::getPrefSpells(), Engines::NWN::CharGenChoices::getPrefSpellSchool(), Engines::NWN::CharSchool::hide(), Engines::NWN::CharSpells::makeSpellsList(), Engines::NWN::CharSchool::reset(), Engines::NWN::CharDomain::reset(), Engines::NWN::CharGenChoices::resetPackage(), and Engines::NWN::CharGenChoices::setPackage().