| 164 | } |
| 165 | |
| 166 | inline size_t Next(void** ptr) { |
| 167 | if (MemOut_.Avail() == 0) { |
| 168 | Slave_->Write(Buf(), Stored()); |
| 169 | OnBufferExhausted(); |
| 170 | Reset(); |
| 171 | } |
| 172 | |
| 173 | return MemOut_.Next(ptr); |
| 174 | } |
| 175 | |
| 176 | inline void Undo(size_t len) { |
| 177 | Y_ABORT_UNLESS(len <= Stored(), "trying to undo more bytes than actually written"); |