#include <queue.h>
Inheritance diagram for ByteQueue:

Public Methods | |
| ByteQueue (unsigned int m_nodeSize=256) | |
| ByteQueue (const ByteQueue ©) | |
| ~ByteQueue () | |
| unsigned long | MaxRetrievable ()const |
| returns number of bytes that is currently ready for retrieval. More... | |
| bool | AnyRetrievable ()const |
| returns whether any bytes are currently ready for retrieval. More... | |
| void | Put (byte inByte) |
| input a byte for processing. More... | |
| void | Put (const byte *inString,unsigned int length) |
| input multiple bytes. More... | |
| unsigned int | Get (byte &outByte) |
| try to retrieve a single byte. More... | |
| unsigned int | Get (byte *outString,unsigned int getMax) |
| try to retrieve multiple bytes. More... | |
| unsigned int | Peek (byte &outByte)const |
| peek at the next byte without removing it from the output buffer. More... | |
| unsigned int | Peek (byte *outString,unsigned int peekMax)const |
| peek at multiple bytes without removing them from the output buffer. More... | |
| unsigned long | Skip (unsigned long skipMax=ULONG_MAX) |
| discard skipMax bytes from the output buffer. More... | |
| unsigned long | TransferTo (BufferedTransformation &target,unsigned long transferMax=ULONG_MAX) |
| move transferMax bytes of the buffered output to target as input. More... | |
| unsigned long | CopyTo (BufferedTransformation &target,unsigned long copyMax=ULONG_MAX)const |
| copy copyMax bytes of the buffered output to target as input. More... | |
| unsigned long | CurrentSize ()const |
| bool | IsEmpty ()const |
| void | Clear () |
| void | Unget (byte inByte) |
| void | Unget (const byte *inString,unsigned int length) |
| const byte* | Spy (unsigned int &contiguousSize)const |
| byte* | MakeNewSpace (unsigned int &contiguousSize) |
| void | OccupyNewSpace (unsigned int size) |
| void | LazyPut (const byte *inString,unsigned int size) |
| void | FinalizeLazyPut () |
| ByteQueue& | operator= (const ByteQueue &rhs) |
| bool | operator== (const ByteQueue &rhs)const |
| byte | operator[] (unsigned long i)const |
| void | swap (ByteQueue &rhs) |
Friends | |
| class | Walker |
Definition at line 16 of file queue.h.
|
|
|
|
|
|
|
|
|
|
|
returns whether any bytes are currently ready for retrieval.
Reimplemented from BufferedTransformation. |
|
|
|
|
|
copy copyMax bytes of the buffered output to target as input.
Reimplemented from BufferedTransformation. Definition at line 320 of file queue.cpp. Referenced by MessageQueue::CopyTo(), and Peek(). |
|
|
Definition at line 176 of file queue.cpp. Referenced by NetworkSink::Put(). |
|
|
|
|
|
try to retrieve multiple bytes.
Reimplemented from BufferedTransformation. |
|
|
try to retrieve a single byte.
Reimplemented from BufferedTransformation. |
|
|
|
|
|
|
|
|
|
|
|
returns number of bytes that is currently ready for retrieval. All retrieval functions return the actual number of bytes retrieved, which is the lesser of the request number and MaxRetrievable(). Reimplemented from BufferedTransformation. |
|
|
|
|
|
peek at multiple bytes without removing them from the output buffer.
Reimplemented from BufferedTransformation. |
|
|
peek at the next byte without removing it from the output buffer.
Reimplemented from BufferedTransformation. |
|
|
input multiple bytes.
Reimplemented from BufferedTransformation. |
|
|
input a byte for processing.
Reimplemented from BufferedTransformation. Definition at line 198 of file queue.cpp. Referenced by MessageQueue::Put(), and FilterWithInputQueue::Put(). |
|
|
discard skipMax bytes from the output buffer.
Reimplemented from BufferedTransformation. |
|
|
|
|
|
move transferMax bytes of the buffered output to target as input.
Reimplemented from BufferedTransformation. Definition at line 302 of file queue.cpp. Referenced by Get(), DERGeneralEncoder::MessageEnd(), Skip(), and MessageQueue::TransferTo(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.4 written by Dimitri van Heesch,
© 1997-2000