mirror of
https://git.tesses.org/tesses50/tessesframework.git
synced 2026-10-02 01:24:13 +00:00
Added memoryfilesystem and working on c wrapper
This commit is contained in:
@@ -15,7 +15,7 @@ namespace Tesses::Framework::Streams
|
||||
{
|
||||
if(this->offset >= this->buffer.size()) return 0;
|
||||
size_t toRead = std::min(sz, this->buffer.size()-this->offset);
|
||||
memcpy(buff, this->buffer.data() + this->offset, sz);
|
||||
memcpy(buff, this->buffer.data() + this->offset, toRead);
|
||||
this->offset += toRead;
|
||||
return toRead;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user