149 return (0 != this->
fourCC);
197 str[0] = (char) ((f.
fourCC & 0xFF000000) >> 24);
198 str[1] = (char) ((f.
fourCC & 0x00FF0000) >> 16);
199 str[2] = (char) ((f.
fourCC & 0x0000FF00) >> 8);
200 str[3] = (char) (f.
fourCC & 0x000000FF);
211#if (__WIN32__ || __LINUX__ )
212 return FourCC(
uint(s[3] | s[2]<<8 | s[1]<<16 | s[0]<<24));
214 return FourCC(
uint(s[0] | s[1]<<8 | s[2]<<16 | s[3]<<24));
A four-character-code is a quasi-human-readable 32-bit-id.
Definition fourcc.h:19
void SetFromUInt(uint f)
set from 32-bit-value
Definition fourcc.h:156
uint AsUInt() const
get as 32-bit-value
Definition fourcc.h:166
bool operator!=(const FourCC &rhs) const
inequality operator
Definition fourcc.h:102
bool operator==(const FourCC &rhs) const
equality operator
Definition fourcc.h:93
FourCC()
default constructor
Definition fourcc.h:64
bool operator<(const FourCC &rhs) const
less-then operator
Definition fourcc.h:129
uint fourCC
Definition fourcc.h:57
String AsString() const
get as string
Definition fourcc.h:184
bool operator>(const FourCC &rhs) const
greater-then operator
Definition fourcc.h:111
void SetFromString(const String &s)
set as string
Definition fourcc.h:175
static FourCC FromString(const String &s)
convert string to fourcc
Definition fourcc.h:208
static String ToString(const FourCC &f)
convert fourcc to string
Definition fourcc.h:193
bool IsValid() const
return true if valid
Definition fourcc.h:147
bool operator>=(const FourCC &rhs) const
greater-or-equal operator
Definition fourcc.h:120
uint32_t HashCode() const
return a hashcode (just returns the fourcc)
Definition fourcc.h:222
bool operator<=(const FourCC &rhs) const
less-or-equal operator
Definition fourcc.h:138
#define n_assert(exp)
Definition debug.h:50
A pinned array is an array which manages its own virtual memory.
Definition String.cs:6
Nebula's universal string class.
Definition string.h:50
SizeT Length() const
return length of string
Definition string.h:657
bool IsValid() const
return true if string object is not empty
Definition string.h:684
unsigned int uint
Definition types.h:31