Returns the size of the buffer.
| 102 | |
| 103 | // Returns the size of the buffer. |
| 104 | size_t Size() const { |
| 105 | return (current_index_ >= event_buffer_.size()) ? event_buffer_.size() |
| 106 | : current_index_; |
| 107 | } |
| 108 | |
| 109 | // Resets the buffer. |
| 110 | void Reset() { |