OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Functions | Variables
binary.cpp File Reference

Binary File Reading Unit Test. More...

#include <cstdio>
#include <iostream>
#include <fstream>
#include "global.h"
#include "utils/binary.h"
Include dependency graph for binary.cpp:

Go to the source code of this file.

Functions

static void fillFile (const char *name)
 
static int test (const char *name)
 
int main ()
 

Variables

static const char testData []
 
static float f1 = 3.1415926f
 
static float f2 = 42.23f
 

Detailed Description

Binary File Reading Unit Test.

Author
xythobuz

Definition in file binary.cpp.

Function Documentation

static void fillFile ( const char *  name)
static

Definition at line 32 of file binary.cpp.

static int test ( const char *  name)
static

Definition at line 39 of file binary.cpp.

int main ( )

Definition at line 106 of file binary.cpp.

Variable Documentation

const char testData[]
static
Initial value:
= {
-1,
-1, -1,
42, 42, 42, 42,
-1, -1, -1, -1, -1, 0, 0, 0,
-1,
92, -2,
102, -3, -1, -1,
66, 66, 66, 66, 66, 66, 66, 66
}

Definition at line 15 of file binary.cpp.

float f1 = 3.1415926f
static

Definition at line 29 of file binary.cpp.

float f2 = 42.23f
static

Definition at line 30 of file binary.cpp.