Most importantly, when computing a hash from the on-disk
state.
sha1_init(&info);
char* buf = static_cast<char*>(malloc(1024 * 1024));
size_t readLen;
- SGFile f(p.str());
+ SGBinaryFile f(p.str());
if (!f.open(SG_IO_IN)) {
throw sg_io_exception("Couldn't open file for compute hash", p);
}
char* buf = static_cast<char*>(alloca(1024 * 1024));
size_t readLen;
- SGFile f(p.str());
+ SGBinaryFile f(p.str());
f.open(SG_IO_IN);
while ((readLen = f.read(buf, 1024 * 1024)) > 0) {
std::string contents;
size_t readLen;
- SGFile f(path.str());
+ SGBinaryFile f(path.str());
if (!f.open(SG_IO_IN)) {
throw sg_io_exception("Couldn't open file", path);
}