| 151 | } |
| 152 | |
| 153 | char CircularBuffer::Read() |
| 154 | { |
| 155 | if (Empty()) |
| 156 | throw std::exception("Read from empty buffer!"); |
| 157 | |
| 158 | auto value = *ReadPointer(); |
| 159 | //std::cerr << " " << m_readOffset << " => " << unsigned int(unsigned char(value)) << "\n"; |
| 160 | IncreaseReadPointer(); |
| 161 | return value; |
| 162 | } |
| 163 | |
| 164 | void CircularBuffer::Write(char value) |
| 165 | { |
nothing calls this directly
no outgoing calls
no test coverage detected