refactor: faster chunk & schematic loading
This commit is contained in:
1 parent
342a195ba8
commit
4dfba6ccd8
4 files changed
+128
-21
No files matched your search
@@ -20,6 +20,8 @@ public:
|
||||
ByteArrayInputStream(std::vector<uint8_t>& buf, unsigned int offset,
|
||||
unsigned int length);
|
||||
ByteArrayInputStream(std::vector<uint8_t>& buf);
|
||||
// takes ownership of the vector
|
||||
ByteArrayInputStream(std::vector<uint8_t>&& buf);
|
||||
virtual ~ByteArrayInputStream();
|
||||
virtual int read();
|
||||
virtual int read(std::vector<uint8_t>& b);
|
||||
@@ -36,4 +38,4 @@ public:
|
||||
mark = 0;
|
||||
pos = 0;
|
||||
}
|
||||
};
|
||||
};
|
||||
Reference in new issue
Block a user