#include <ProfilingMocks.hpp>
Definition at line 273 of file ProfilingMocks.hpp.
◆ MockStreamCounterBuffer()
◆ ~MockStreamCounterBuffer()
◆ Commit()
Implements IBufferManager.
Definition at line 299 of file ProfilingMocks.hpp.
301 std::lock_guard<std::mutex> lock(m_Mutex);
303 packetBuffer->Commit(size);
304 m_BufferList.push_back(std::move(packetBuffer));
305 m_CommittedSize += size;
void FlushReadList() override
◆ FlushReadList()
Implements IBufferManager.
Definition at line 350 of file ProfilingMocks.hpp.
353 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 320 of file ProfilingMocks.hpp.
322 std::lock_guard<std::mutex> lock(m_Mutex);
324 if (m_BufferList.empty())
329 m_BufferList.pop_back();
330 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 334 of file ProfilingMocks.hpp.
336 std::lock_guard<std::mutex> lock(m_Mutex);
338 m_ReadSize += packetBuffer->GetSize();
339 packetBuffer->MarkRead();
◆ Release()
◆ Reserve()
IPacketBufferPtr Reserve |
( |
unsigned int |
requestedSize, |
|
|
unsigned int & |
reservedSize |
|
) |
| |
|
inlineoverridevirtual |
Implements IBufferManager.
Definition at line 285 of file ProfilingMocks.hpp.
287 std::lock_guard<std::mutex> lock(m_Mutex);
290 if (requestedSize > m_MaxBufferSize)
293 std::to_string(m_MaxBufferSize) +
"] bytes");
295 reservedSize = requestedSize;
296 return std::make_unique<MockPacketBuffer>(requestedSize);
◆ SetConsumer()
The documentation for this class was generated from the following file: