14 #ifndef __INCLUDED_SCOPIRA_TOOL_BUFFERFLOW_H__ 15 #define __INCLUDED_SCOPIRA_TOOL_BUFFERFLOW_H__ 17 #include <scopira/tool/flow.h> 18 #include <scopira/tool/export.h> 43 typedef std::vector<tool::flow_i::byte_t> byte_buffer_t;
54 byte_buffer_t dm_buffer;
64 SCOPIRA_EXPORT
virtual bool failed(
void)
const;
67 SCOPIRA_EXPORT
virtual size_t read(
byte_t* buf,
size_t maxsize);
81 size_t size(
void)
const {
return dm_buffer.size(); }
85 size_t capacity(
void)
const {
return dm_buffer.capacity(); }
88 SCOPIRA_EXPORT
void reset(
void);
90 SCOPIRA_EXPORT
void reserve(
size_t _size);
108 SCOPIRA_EXPORT
bufferiflow(
const byte_t *data,
size_t sz);
111 SCOPIRA_EXPORT
virtual bool failed(
void)
const;
114 SCOPIRA_EXPORT
virtual size_t read(byte_t* _buf,
size_t _maxsize);
130 SCOPIRA_EXPORT
bufferoflow(byte_t *data,
size_t sz);
133 SCOPIRA_EXPORT
virtual bool failed(
void)
const;
136 SCOPIRA_EXPORT
virtual size_t write(
const byte_t* _buf,
size_t _size);
Definition: archiveflow.h:20