Write the first n characters that have been placed in the auxiliary buffer. This call invalidates the auxiliary buffer. This function should not be called if no auxiliary buffer is available.
| 101 | // This function should not be called if no auxiliary buffer is available. |
| 102 | // |
| 103 | bool |
| 104 | commit(size_t n) override |
| 105 | { |
| 106 | if (n) { |
| 107 | IOBufferBlock *iobbPtr = _miob->first_write_block(); |
| 108 | |
| 109 | ink_assert(iobbPtr and (n <= size_t(iobbPtr->write_avail()))); |
| 110 | |
| 111 | iobbPtr->fill(n); |
| 112 | |
| 113 | _numWritten += n; |
| 114 | } |
| 115 | |
| 116 | return true; |
| 117 | } |
| 118 | |
| 119 | // No fixed limit on capacity. |
| 120 | // |
nothing calls this directly
no test coverage detected