TrinityCore
|
#include "G3D/platform.h"
#include "G3D/BinaryInput.h"
#include "G3D/Array.h"
#include "G3D/fileutils.h"
#include "G3D/Log.h"
#include "G3D/FileSystem.h"
#include <zlib.h>
#include <cstring>
Namespaces | |
G3D | |
Macros | |
#define | IMPLEMENT_READER(ucase, lcase) |
#define | IMPLEMENT_READER(ucase, lcase) |
#define | IMPLEMENT_READER(ucase, lcase) |
Functions | |
static uint32 | G3D::readUInt32FromBuffer (const uint8 *data, bool swapBytes) |
static bool | G3D::isNewline (char c) |
2001-08-09 2013-01-03
{ BinaryOutput b("c:/tmp/test.b", BinaryOutput::LITTLE_ENDIAN);
float f = 3.1415926; int i = 1027221; std::string s = "Hello World!";
b.writeFloat32(f); b.writeInt32(i); b.writeString(s); b.commit();
BinaryInput in("c:/tmp/test.b", BinaryInput::LITTLE_ENDIAN);
debugAssert(f == in.readFloat32()); int ii = in.readInt32(); debugAssert(i == ii); debugAssert(s == in.readString()); }
#define IMPLEMENT_READER | ( | ucase, | |
lcase | |||
) |
#define IMPLEMENT_READER | ( | ucase, | |
lcase | |||
) |