TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
|
A stream buffer for writing to an accessible vector of bytes. More...
#include <serialization.h>
Inherits streambuf.
Public Types | |
using | int_type = typename std::streambuf::int_type |
Public Member Functions | |
OMembuf () | |
std::vector< char > & | data () |
std::vector< char > | takeData () |
virtual int_type | overflow (int_type ch=traits_type::eof()) |
virtual std::streamsize | xsputn (char const *s, std::streamsize num) |
A stream buffer for writing to an accessible vector of bytes.
This can be used to construct a std::ostream as follows:
using common::OMembuf::int_type = typename std::streambuf::int_type |
|
inline |
std::vector< char > & common::OMembuf::data | ( | ) |
|
virtual |
std::vector< char > common::OMembuf::takeData | ( | ) |
|
virtual |