mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-05-08 21:44:56 +00:00
17 lines
361 B
C++
17 lines
361 B
C++
#include "LoadingFileStream.h"
|
|
|
|
LoadingFileStream::LoadingFileStream(std::istream& stream)
|
|
: m_stream(stream)
|
|
{
|
|
}
|
|
|
|
size_t LoadingFileStream::Load(void* buffer, const size_t length)
|
|
{
|
|
m_stream.read(static_cast<char*>(buffer), length);
|
|
return static_cast<size_t>(m_stream.gcount());
|
|
}
|
|
|
|
int64_t LoadingFileStream::Pos()
|
|
{
|
|
return m_stream.tellg();
|
|
} |