MCPcopy Create free account
hub / github.com/apache/trafficserver / commit

Method commit

include/iocore/eventsystem/MIOBufferWriter.h:103–117  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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 //

Callers

nothing calls this directly

Calls 3

first_write_blockMethod · 0.45
write_availMethod · 0.45
fillMethod · 0.45

Tested by

no test coverage detected