mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 20:30:05 +00:00
Parse Clutter Filter Map (Message 15)
This commit is contained in:
parent
f36d57b71d
commit
3ab4ec4b9b
15 changed files with 682 additions and 22 deletions
19
wxdata/source/scwx/util/vectorbuf.cpp
Normal file
19
wxdata/source/scwx/util/vectorbuf.cpp
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue