CArchive and CFile are removed

This commit is contained in:
alexeevdv
2015-02-16 00:30:55 +03:00
parent 830fb4f983
commit 447f352779
24 changed files with 285 additions and 528 deletions
+1 -13
View File
@@ -8,25 +8,13 @@
*/
// C++ standard includes
#include <stdio.h>
// int2ssl includes
#include "Utility.h"
// Third party includes
uint32_t ReadMSBWord(CArchive& ar, uint16_t& wValue)
{
char* pBuffer = reinterpret_cast<char*>(&wValue);
return (ar.Read(pBuffer + 1, 1) + ar.Read(pBuffer, 1));
}
uint32_t ReadMSBULong(CArchive& ar, uint32_t& ulValue)
{
char* pBuffer = reinterpret_cast<char*>(&ulValue);
return (ar.Read(pBuffer + 3, 1) + ar.Read(pBuffer + 2, 1) +
ar.Read(pBuffer + 1, 1) + ar.Read(pBuffer, 1));
}
std::string format(std::string format, ...)
{
char buffer[1024]; // big enough for any string that will be formated