You.i Engine
YiUtilities.h File Reference

Go to the source code of this file.

Functions

bool YiGetFileName (char &pFileName, char *pFilter)
 
CYIString YiGetLocalDirectory ()
 
bool YiMakeDirectory (const CYIString &sPath)
 
bool YiDeleteFile (const char *pPath)
 
bool YiCopyFile (const char *pSourcePath, const char *pDestinationPath)
 
bool YiFilesAreIdentical (const char *pReferencePath, const char *pTestPath)
 
template<typename YI_SWAP_TYPE >
void YI_SWAP (YI_SWAP_TYPE &a, YI_SWAP_TYPE &b)
 
YI_EXTERNINLINE uint16_t RandomWORD (void)
 
YI_EXTERNINLINE int32_t YI_MIN4 (int32_t a, int32_t b, int32_t c, int32_t d)
 
YI_EXTERNINLINE int32_t YI_MAX4 (int32_t a, int32_t b, int32_t c, int32_t d)
 
bool CompareNames (wchar_t *Name, wchar_t *Compare)
 
YI_FILEYI_FOPEN (const char *pPath, const char *pMode)
 
YI_FILEYI_WFOPEN (const wchar_t *pPath, const wchar_t *pMode)
 
void YI_FCLOSE (YI_FILE *pFile)
 
void YI_FSEEK (YI_FILE *pFile, int32_t nPos, int32_t nMode)
 
int32_t YI_FTELL (YI_FILE *pFile)
 
int32_t YI_TRUNCATE (YI_FILE *pFile, int32_t length)
 
uint64_t YiGetTimeuS (void)
 
void YILockFrameRate (int32_t nFPS)
 
uint8_t * YiReadFile (YI_FILE *pFile, uint32_t *pBufferSize, uint32_t uAdditionalPadding)
 
std::vector< char > YiBase64Encode (const char *pData, uint32_t unInputLength)
 
std::vector< char > YiBase64Encode (const std::vector< char > &byteArray)
 
std::vector< char > YiBase64Encode (const std::string &str)
 
std::vector< char > YiBase64Encode (const CYIString &str)
 
std::vector< char > YiBase64Decode (const char *pData, uint32_t unInputLength)
 
std::vector< char > YiBase64Decode (const std::vector< char > &byteArray)
 
std::vector< char > YiBase64Decode (const std::string &str)
 
std::vector< char > YiBase64Decode (const CYIString &str)
 
bool YiIsLittleEndian ()
 
bool YiIsBigEndian ()
 
template<typename T , size_t N>
size_t YI_SIZE_OF_ARRAY (const T(&a)[N])