MCPcopy Create free account
hub / github.com/ashkulz/NppFTP / GetDataSize

Method GetDataSize

UTCP/src/UT_Queue.cpp:67–76  ·  view source on GitHub ↗

GetDataSize Returns the number of bytes of data available in the queue RETURN: The size of the available data in the queue ************************************************/

Source from the content-addressed store, hash-verified

65 The size of the available data in the queue
66************************************************/
67int CUT_FIFO_Queue::GetDataSize() {
68
69 if(m_iReadPointer == m_iWritePointer)
70 return 0;
71
72 if(m_iReadPointer < m_iWritePointer)
73 return (m_iWritePointer - m_iReadPointer);
74
75 return ((m_iWritePointer + m_cbBuffer) - m_iReadPointer);
76}
77
78/***********************************************
79GetFreeSize

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected