21 #ifndef INCLUDE_OLA_IO_IOQUEUE_H_ 22 #define INCLUDE_OLA_IO_IOQUEUE_H_ 25 #include <ola/io/IOVecInterface.h> 26 #include <ola/io/InputBuffer.h> 27 #include <ola/io/OutputBuffer.h> 49 unsigned int Size()
const;
52 return m_blocks.empty();
56 void Write(
const uint8_t *data,
unsigned int length);
59 unsigned int Read(uint8_t *data,
unsigned int length);
60 unsigned int Read(std::string *output,
unsigned int length);
62 unsigned int Peek(uint8_t *data,
unsigned int length)
const;
66 void Pop(
unsigned int n);
82 void Dump(std::ostream *output);
85 typedef std::deque<class MemoryBlock*> BlockVector;
99 #endif // INCLUDE_OLA_IO_IOQUEUE_H_ const struct IOVec * AsIOVec(int *io_count) const
Definition: IOQueue.cpp:186
#define DISALLOW_COPY_AND_ASSIGN(TypeName)
Creates dummy copy constructor and assignment operator declarations.
Definition: Macro.h:44
Definition: OutputBuffer.h:36
~IOQueue()
Definition: IOQueue.cpp:56
Definition: IOVecInterface.h:36
void AppendBlock(class MemoryBlock *block)
Definition: IOQueue.cpp:213
void Write(const uint8_t *data, unsigned int length)
Definition: IOQueue.cpp:82
unsigned int Peek(uint8_t *data, unsigned int length) const
Definition: IOQueue.cpp:147
unsigned int Size() const
Definition: IOQueue.cpp:67
void Clear()
Definition: IOQueue.cpp:229
Definition: IOVecInterface.h:53
A MemoryBlock encapsulates a chunk of memory. It's used by the IOQueue and IOStack classes...
Definition: MemoryBlock.h:41
void Dump(std::ostream *output)
Definition: IOQueue.cpp:243
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
unsigned int Read(uint8_t *data, unsigned int length)
Definition: IOQueue.cpp:103
MemoryBlockPool. This class is not thread safe.
Definition: MemoryBlockPool.h:35
void Pop(unsigned int n)
Definition: IOQueue.cpp:161
void AppendMove(IOQueue *other)
Move the contents of one IOQueue to another.
Definition: IOQueue.cpp:217
IOQueue()
IOQueue.
Definition: IOQueue.cpp:42