supercell-wx/wxdata/source/scwx/util/vectorbuf.cpp
2021-06-15 22:03:23 -05:00

19 lines
299 B
C++

#include <scwx/util/vectorbuf.hpp>
namespace scwx
{
namespace util
{
vectorbuf::vectorbuf(std::vector<char>& v) : v_(v)
{
update_read_pointers(0);
}
void vectorbuf::update_read_pointers(size_t size)
{
setg(v_.data(), v_.data(), v_.data() + size);
}
} // namespace util
} // namespace scwx