7 #ifndef _QI_BUFFER_HPP_
8 # define _QI_BUFFER_HPP_
12 # include <boost/shared_ptr.hpp>
17 # pragma warning( push )
18 # pragma warning( disable: 4251 )
120 bool write(
const void *data,
size_t size);
129 size_t addSubBuffer(
const Buffer& buffer);
135 bool hasSubBuffer(
size_t offset)
const;
142 const Buffer& subBuffer(
size_t offset)
const;
157 size_t totalSize()
const;
164 const std::vector<std::pair<size_t, Buffer> >& subBuffers()
const;
172 void* reserve(
size_t size);
188 const void* data()
const;
199 const void* read(
size_t offset = 0,
size_t length = 0)
const;
211 size_t read(
void* buffer,
size_t offset = 0,
size_t length = 0)
const;
217 boost::shared_ptr<BufferPrivate> _p;
244 size_t read(
void *data,
size_t length);
252 void *read(
size_t offset);
258 bool seek(
size_t offset);
266 void *peek(
size_t offset)
const;
273 bool hasSubBuffer()
const;
279 const Buffer& subBuffer();
284 size_t position()
const;
299 # pragma warning( pop )
302 #endif // _QI_BUFFER_HPP_
void printBuffer(std::ostream &stream, const Buffer &buffer)
dll import/export and compiler message
bool operator==(const Signature &lhs, const Signature &rhs)
Class to read const buffer. <includename>qi/buffer.hpp</includename> This class is intendeed to rea...
Class to store buffer. <includename>qi/buffer.hpp</includename> .