-
Notifications
You must be signed in to change notification settings - Fork 400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TechDebt]--Cleanup superfluous IO functions #1478
[TechDebt]--Cleanup superfluous IO functions #1478
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/esp/assets/PTexMeshData.cpp
Outdated
@@ -760,7 +759,7 @@ void PTexMeshData::parsePLY(const std::string& filename, | |||
Cr::Containers::Array<const char, Cr::Utility::Directory::MapDeleter> | |||
mmappedData = Cr::Utility::Directory::mapRead(filename); | |||
|
|||
const size_t fileSize = io::fileSize(filename); | |||
const auto fileSize = *Cr::Utility::Directory::fileSize(filename); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could have stayed as size_t
, I think?
(Argh, why I don't have it 64-bit always? 😱)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
024c155
to
ebf2932
Compare
ed34ca7
to
0a4d60a
Compare
Motivation and Context
This small PR removes some file-based functions from Habitat that replicate functionality provided by Corrade. It further edits existing ones to use Corrade utilities instead of re-inventing the wheel.
How Has This Been Tested
Local C++ and python tests pass
Types of changes
Checklist