10 #ifndef MSGPACK_V1_FBUFFER_HPP
11 #define MSGPACK_V1_FBUFFER_HPP
18 #include <boost/assert.hpp>
31 void write(
const char* buf,
unsigned int len)
33 BOOST_ASSERT(buf || len == 0);
35 if (1 != fwrite(buf, len, 1, m_file)) {
36 throw std::runtime_error(
"fwrite() failed");
45 #if defined(MSGPACK_USE_CPP03)
Definition: fbuffer.hpp:26
fbuffer(FILE *file)
Definition: fbuffer.hpp:28
fbuffer & operator=(const fbuffer &)=delete
void write(const char *buf, unsigned int len)
Definition: fbuffer.hpp:31
FILE * file() const
Definition: fbuffer.hpp:40
fbuffer(const fbuffer &)=delete
Definition: adaptor_base.hpp:15
#define MSGPACK_API_VERSION_NAMESPACE(ns)
Definition: versioning.hpp:66