Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
ByteQueueNode Class Reference
Collaboration diagram for ByteQueueNode:
[legend]

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

ByteQueueNodenext
 
SecByteBlock buf
 
size_t m_head
 
size_t m_tail
 

Detailed Description

Definition at line 15 of file queue.cpp.

Constructor & Destructor Documentation

ByteQueueNode::ByteQueueNode ( size_t  maxSize)
inline

Definition at line 18 of file queue.cpp.

Member Function Documentation

void ByteQueueNode::Clear ( )
inline

Definition at line 37 of file queue.cpp.

Here is the caller graph for this function:

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

Definition at line 69 of file queue.cpp.

Here is the call graph for this function:

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

Definition at line 76 of file queue.cpp.

Here is the call graph for this function:

size_t ByteQueueNode::CurrentSize ( ) const
inline

Definition at line 27 of file queue.cpp.

Here is the caller graph for this function:

size_t ByteQueueNode::Get ( byte outByte)
inline

Definition at line 83 of file queue.cpp.

Here is the caller graph for this function:

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

Definition at line 90 of file queue.cpp.

size_t ByteQueueNode::MaxSize ( ) const
inline

Definition at line 25 of file queue.cpp.

Here is the caller graph for this function:

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

Definition at line 120 of file queue.cpp.

size_t ByteQueueNode::Peek ( byte outByte) const
inline

Definition at line 53 of file queue.cpp.

Here is the caller graph for this function:

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

Definition at line 62 of file queue.cpp.

Here is the call graph for this function:

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

Definition at line 42 of file queue.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

size_t ByteQueueNode::Skip ( size_t  skipMax)
inline

Definition at line 113 of file queue.cpp.

Here is the call graph for this function:

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

Definition at line 97 of file queue.cpp.

Here is the call graph for this function:

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

Definition at line 105 of file queue.cpp.

Here is the call graph for this function:

bool ByteQueueNode::UsedUp ( ) const
inline

Definition at line 32 of file queue.cpp.

Here is the caller graph for this function:

Member Data Documentation

SecByteBlock ByteQueueNode::buf

Definition at line 127 of file queue.cpp.

size_t ByteQueueNode::m_head

Definition at line 128 of file queue.cpp.

size_t ByteQueueNode::m_tail

Definition at line 128 of file queue.cpp.

ByteQueueNode* ByteQueueNode::next

Definition at line 125 of file queue.cpp.


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