Security Scol plugin
Public Member Functions | Public Attributes | List of all members
ByteQueueNode Class Reference

Public Member Functions

 ByteQueueNode (size_t maxSize)
 
size_t MaxSize () const
 
size_t CurrentSize () const
 
bool UsedUp () const
 
void Clear ()
 
size_t Put (const byte *begin, size_t length)
 
size_t Peek (byte &outByte) const
 
size_t Peek (byte *target, size_t copyMax) const
 
size_t CopyTo (BufferedTransformation &target, const std::string &channel=DEFAULT_CHANNEL) const
 
size_t CopyTo (BufferedTransformation &target, size_t copyMax, const std::string &channel=DEFAULT_CHANNEL) const
 
size_t Get (byte &outByte)
 
size_t Get (byte *outString, size_t getMax)
 
size_t TransferTo (BufferedTransformation &target, const std::string &channel=DEFAULT_CHANNEL)
 
size_t TransferTo (BufferedTransformation &target, lword transferMax, const std::string &channel=DEFAULT_CHANNEL)
 
size_t Skip (size_t skipMax)
 
byte operator[] (size_t i) const
 

Public Attributes

ByteQueueNodem_next
 
SecByteBlock m_buf
 
size_t m_head
 
size_t m_tail
 

Detailed Description

Definition at line 17 of file queue.cpp.

Constructor & Destructor Documentation

◆ ByteQueueNode()

ByteQueueNode::ByteQueueNode ( size_t  maxSize)
inline

Definition at line 20 of file queue.cpp.

Member Function Documentation

◆ Clear()

void ByteQueueNode::Clear ( )
inline

Definition at line 42 of file queue.cpp.

◆ CopyTo() [1/2]

size_t ByteQueueNode::CopyTo ( BufferedTransformation target,
const std::string &  channel = DEFAULT_CHANNEL 
) const
inline

Definition at line 74 of file queue.cpp.

◆ CopyTo() [2/2]

size_t ByteQueueNode::CopyTo ( BufferedTransformation target,
size_t  copyMax,
const std::string &  channel = DEFAULT_CHANNEL 
) const
inline

Definition at line 81 of file queue.cpp.

◆ CurrentSize()

size_t ByteQueueNode::CurrentSize ( ) const
inline

Definition at line 32 of file queue.cpp.

◆ Get() [1/2]

size_t ByteQueueNode::Get ( byte outByte)
inline

Definition at line 88 of file queue.cpp.

◆ Get() [2/2]

size_t ByteQueueNode::Get ( byte outString,
size_t  getMax 
)
inline

Definition at line 95 of file queue.cpp.

◆ MaxSize()

size_t ByteQueueNode::MaxSize ( ) const
inline

Definition at line 30 of file queue.cpp.

◆ operator[]()

byte ByteQueueNode::operator[] ( size_t  i) const
inline

Definition at line 125 of file queue.cpp.

◆ Peek() [1/2]

size_t ByteQueueNode::Peek ( byte outByte) const
inline

Definition at line 58 of file queue.cpp.

◆ Peek() [2/2]

size_t ByteQueueNode::Peek ( byte target,
size_t  copyMax 
) const
inline

Definition at line 67 of file queue.cpp.

◆ Put()

size_t ByteQueueNode::Put ( const byte begin,
size_t  length 
)
inline

Definition at line 47 of file queue.cpp.

◆ Skip()

size_t ByteQueueNode::Skip ( size_t  skipMax)
inline

Definition at line 118 of file queue.cpp.

◆ TransferTo() [1/2]

size_t ByteQueueNode::TransferTo ( BufferedTransformation target,
const std::string &  channel = DEFAULT_CHANNEL 
)
inline

Definition at line 102 of file queue.cpp.

◆ TransferTo() [2/2]

size_t ByteQueueNode::TransferTo ( BufferedTransformation target,
lword  transferMax,
const std::string &  channel = DEFAULT_CHANNEL 
)
inline

Definition at line 110 of file queue.cpp.

◆ UsedUp()

bool ByteQueueNode::UsedUp ( ) const
inline

Definition at line 37 of file queue.cpp.

Member Data Documentation

◆ m_buf

SecByteBlock ByteQueueNode::m_buf

Definition at line 132 of file queue.cpp.

◆ m_head

size_t ByteQueueNode::m_head

Definition at line 133 of file queue.cpp.

◆ m_next

ByteQueueNode* ByteQueueNode::m_next

Definition at line 130 of file queue.cpp.

◆ m_tail

size_t ByteQueueNode::m_tail

Definition at line 133 of file queue.cpp.


The documentation for this class was generated from the following file: