11 static std::ifstream file;
14 std::cout <<
"Mocaaaando" << std::endl;
15 static int mockIndex = 0;
20 file.open(
"files/passive_mock.txt", std::ios::in | std::ios::binary | std::ios::ate);
23 std::streampos size = file.tellg();
27 file.seekg(0, std::ios::beg);
30 std::cout <<
"Passive mockData loaded: " << size <<
" bytes long" << std::endl;
34 std::cout <<
"Failed to load passive mockData" << std::endl;
44 std::cout <<
"No mockData" << std::endl;
56 file.open(
PASSIVE_FILENAME, std::ios::in | std::ios::binary | std::ios::ate);
59 file.seekg(0, std::ios::beg);
63 std::cout <<
"Passive mockData loaded: " <<
BUFFER_SIZE <<
" bytes long" << std::endl;
66 std::cout <<
"Failed to load passive mockData" << std::endl;
static unsigned char * mockData
static unsigned char buffer[BUFFER_SIZE]