mirror of
https://github.com/sfall-team/int2ssl.git
synced 2026-07-27 16:52:42 -07:00
CArchive and CFile are removed
This commit is contained in:
+1
-13
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user