#include <ProfilingMocks.hpp>
Definition at line 275 of file ProfilingMocks.hpp.
◆ MockStreamCounterBuffer()
◆ ~MockStreamCounterBuffer()
◆ Commit()
Implements IBufferManager.
Definition at line 301 of file ProfilingMocks.hpp.
303 std::lock_guard<std::mutex> lock(m_Mutex);
305 packetBuffer->Commit(size);
306 m_BufferList.push_back(std::move(packetBuffer));
307 m_CommittedSize += size;
void FlushReadList() override
◆ FlushReadList()
Implements IBufferManager.
Definition at line 352 of file ProfilingMocks.hpp.
355 if (m_Consumer !=
nullptr)
virtual void SetReadyToRead()=0
Set a "ready to read" flag in the buffer to notify the reading thread to start reading it...
◆ GetCommittedSize()
unsigned int GetCommittedSize |
( |
| ) |
const |
|
inline |
◆ GetReadableBuffer()
Implements IBufferManager.
Definition at line 322 of file ProfilingMocks.hpp.
324 std::lock_guard<std::mutex> lock(m_Mutex);
326 if (m_BufferList.empty())
331 m_BufferList.pop_back();
332 m_ReadableSize += buffer->GetSize();
std::unique_ptr< IPacketBuffer > IPacketBufferPtr
◆ GetReadableSize()
unsigned int GetReadableSize |
( |
| ) |
const |
|
inline |
◆ GetReadSize()
unsigned int GetReadSize |
( |
| ) |
const |
|
inline |
◆ MarkRead()
Implements IBufferManager.
Definition at line 336 of file ProfilingMocks.hpp.
338 std::lock_guard<std::mutex> lock(m_Mutex);
340 m_ReadSize += packetBuffer->GetSize();
341 packetBuffer->MarkRead();
◆ Release()
◆ Reserve()
IPacketBufferPtr Reserve |
( |
unsigned int |
requestedSize, |
|
|
unsigned int & |
reservedSize |
|
) |
| |
|
inlineoverridevirtual |
Implements IBufferManager.
Definition at line 287 of file ProfilingMocks.hpp.
289 std::lock_guard<std::mutex> lock(m_Mutex);
292 if (requestedSize > m_MaxBufferSize)
295 std::to_string(m_MaxBufferSize) +
"] bytes");
297 reservedSize = requestedSize;
298 return std::make_unique<MockPacketBuffer>(requestedSize);
◆ SetConsumer()
The documentation for this class was generated from the following file: