diff --git a/envi/binary.h b/envi/binary.h index 9fea3a1..97cc41d 100644 --- a/envi/binary.h +++ b/envi/binary.h @@ -28,6 +28,7 @@ protected: } //returns the file size + // reads the file size from disk and returns it (in bytes) unsigned int get_file_size(){ struct stat results; @@ -36,6 +37,8 @@ protected: else return 0; } + //make sure that the specified file size matches the file size on disk + // returns true/false bool test_file_size(){ unsigned int sum = header; //initialize the sum (in bytes) to the header size for(unsigned int i = 0; i r, unsigned int h = 0){ if(!open_file(filename)) return false; @@ -72,19 +77,17 @@ public: return test_file_size(); } - bool open(std::string filename, unsigned int X, unsigned int h = 0){ + /*bool open(std::string filename, unsigned int X, unsigned int h = 0){ return open(filename, vec(X), h); } bool open(std::string filename, unsigned int X, unsigned int Y, unsigned int h = 0){ return open(filename, vec(X, Y), h); - - } bool open(std::string filename, unsigned int X, unsigned int Y, unsigned int Z, unsigned int h = 0){ return open(filename, vec(X, Y, Z), h); - } + }*/ }; -- libgit2 0.21.4