| 36 | } |
| 37 | |
| 38 | void PacketBuffer::Commit(unsigned int size) |
| 39 | { |
| 40 | if (size > m_MaxSize) |
| 41 | { |
| 42 | throw arm::pipe::ProfilingException("Cannot commit [" + std::to_string(size) + |
| 43 | "] bytes which is more than the maximum size of the buffer [" + std::to_string(m_MaxSize) + "]"); |
| 44 | } |
| 45 | m_Size = size; |
| 46 | } |
| 47 | |
| 48 | void PacketBuffer::Release() |
| 49 | { |