INNER CODE UNIT · C++
skip
evanbowman/BPCore-Engine · source/filesystem.cpp:125
auto skip = tonum(current->size_) + 1; // +1 for null terminator
skip += skip % 4; // word padding
const char* next_addr = reinterpret_cast<const char*>(current) +
sizeof(FileInfo) + skip;
current = reinterpret_cast<const FileInfo*>(next_addr);
} else {
return {nullptr, 0};
}
}
}
#pragma GCC diagnostic pop