REQUIRE(picture);
//Open file
- ifstream file(TEST_DIR"/test.png", std::ios::in | std::ios::binary);
+ ifstream file(TEST_DIR"/test.png", ios::in | ios::binary);
REQUIRE(file.is_open());
auto size = sizeof(uint32_t) * (1000*1000);
auto data = (char*)malloc(size);
REQUIRE(picture);
//Open file
- ifstream file(TEST_DIR"/test.jpg", std::ios::in | std::ios::binary);
+ ifstream file(TEST_DIR"/test.jpg", ios::in | ios::binary);
REQUIRE(file.is_open());
auto begin = file.tellg();
- file.seekg(0, std::ios::end);
+ file.seekg(0, ios::end);
auto size = file.tellg() - begin;
auto data = (char*)malloc(size);
- file.seekg(0, std::ios::beg);
+ file.seekg(0, ios::beg);
file.read(data, size);
file.close();
REQUIRE(picture);
//Open file
- ifstream file(TEST_DIR"/tag.tvg", std::ios::in | std::ios::binary);
+ ifstream file(TEST_DIR"/tag.tvg", ios::in | ios::binary);
REQUIRE(file.is_open());
auto begin = file.tellg();
- file.seekg(0, std::ios::end);
+ file.seekg(0, ios::end);
auto size = file.tellg() - begin;
auto data = (char*)malloc(size);
- file.seekg(0, std::ios::beg);
+ file.seekg(0, ios::beg);
file.read(data, size);
file.close();