Returns the number of bytes that are currently in the ringbuffer. Note GetReadableBytes()
| 240 | |
| 241 | /// Returns the number of bytes that are currently in the ringbuffer. Note GetReadableBytes() |
| 242 | size_t cByteBuffer::GetUsedSpace(void) const |
| 243 | { |
| 244 | CHECK_THREAD; |
| 245 | CheckValid(); |
| 246 | ASSERT(m_BufferSize >= GetFreeSpace()); |
| 247 | ASSERT((m_BufferSize - GetFreeSpace()) >= 1); |
| 248 | return m_BufferSize - GetFreeSpace() - 1; |
| 249 | } |
| 250 | |
| 251 | |
| 252 |
no outgoing calls
no test coverage detected