This commit is contained in:
Reece Wilson 2020-09-12 20:41:40 +01:00
parent f1d83edc22
commit 7e7d03d867

View File

@ -172,9 +172,8 @@ public:
return _stream.read(reinterpret_cast<char *>(in), length) ? length : _stream.gcount(); return _stream.read(reinterpret_cast<char *>(in), length) ? length : _stream.gcount();
} }
size_t Read(size_t length) size_t Read(size_t length, std::vector<uint8_t> & in)
{ {
std::vector<uint8_t> in;
in.resize(length); in.resize(length);
return Read(in.data(), length); return Read(in.data(), length);
} }