mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-14 00:38:15 -05:00
Include filesize when opening a file with searchpaths
This commit is contained in:
17
src/ObjLoading/SearchPath/ISearchPath.cpp
Normal file
17
src/ObjLoading/SearchPath/ISearchPath.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
#include "ISearchPath.h"
|
||||
|
||||
bool SearchPathOpenFile::IsOpen() const
|
||||
{
|
||||
return m_stream != nullptr;
|
||||
}
|
||||
|
||||
SearchPathOpenFile::SearchPathOpenFile()
|
||||
: m_length(0)
|
||||
{
|
||||
}
|
||||
|
||||
SearchPathOpenFile::SearchPathOpenFile(std::unique_ptr<std::istream> stream, const int64_t length)
|
||||
: m_stream(std::move(stream)),
|
||||
m_length(length)
|
||||
{
|
||||
}
|
Reference in New Issue
Block a user