mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 18:30:06 +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
27
wxdata/include/scwx/util/vectorbuf.hpp
Normal file
27
wxdata/include/scwx/util/vectorbuf.hpp
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#pragma once
|
||||
|
||||
#include <streambuf>
|
||||
#include <vector>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace util
|
||||
{
|
||||
|
||||
class vectorbuf : public std::streambuf
|
||||
{
|
||||
public:
|
||||
vectorbuf(std::vector<char>& v);
|
||||
~vectorbuf() = default;
|
||||
|
||||
vectorbuf(const vectorbuf&) = delete;
|
||||
vectorbuf& operator=(const vectorbuf&) = delete;
|
||||
|
||||
void update_read_pointers(size_t size);
|
||||
|
||||
private:
|
||||
std::vector<char>& v_;
|
||||
};
|
||||
|
||||
} // namespace util
|
||||
} // namespace scwx
|
||||
Loading…
Add table
Add a link
Reference in a new issue