#include <ProfilingMocks.hpp>
Definition at line 277 of file ProfilingMocks.hpp.
◆ MockStreamCounterBuffer()
◆ ~MockStreamCounterBuffer()
◆ Commit()
Implements IBufferManager.
Definition at line 303 of file ProfilingMocks.hpp.
305 std::lock_guard<std::mutex> lock(m_Mutex);
307 packetBuffer->Commit(size);
308 m_BufferList.push_back(std::move(packetBuffer));
309 m_CommittedSize += size;
void FlushReadList() override
◆ FlushReadList()
Implements IBufferManager.
Definition at line 354 of file ProfilingMocks.hpp.
357 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 324 of file ProfilingMocks.hpp.
326 std::lock_guard<std::mutex> lock(m_Mutex);
328 if (m_BufferList.empty())
333 m_BufferList.pop_back();
334 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 338 of file ProfilingMocks.hpp.
340 std::lock_guard<std::mutex> lock(m_Mutex);
342 m_ReadSize += packetBuffer->GetSize();
343 packetBuffer->MarkRead();
◆ Release()
◆ Reserve()
IPacketBufferPtr Reserve |
( |
unsigned int |
requestedSize, |
|
|
unsigned int & |
reservedSize |
|
) |
| |
|
inlineoverridevirtual |
Implements IBufferManager.
Definition at line 289 of file ProfilingMocks.hpp.
291 std::lock_guard<std::mutex> lock(m_Mutex);
294 if (requestedSize > m_MaxBufferSize)
297 std::to_string(m_MaxBufferSize) +
"] bytes");
299 reservedSize = requestedSize;
300 return std::make_unique<MockPacketBuffer>(requestedSize);
◆ SetConsumer()
The documentation for this class was generated from the following file: