MCPcopy Create free account
hub / github.com/FoundationDB/fdb-document-layer / pop

Method pop

src/BufferedConnection.actor.cpp:215–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215void BufferedConnection::pop(int count) {
216 while (count) {
217 int to_remove = std::min(count, BCBlock::DATA_SIZE - self->deadlist_begin_offset);
218
219 self->deadlist_begin_offset += to_remove;
220 if (self->deadlist_begin_offset == BCBlock::DATA_SIZE) {
221 delete self->deadlist.front();
222 self->deadlist.pop_front();
223 self->deadlist_begin_offset = 0;
224 }
225
226 count -= to_remove;
227 }
228}
229
230void BufferedConnection::write(StringRef buf) {
231 int remaining = buf.size();

Callers 4

DocLayer.actor.cppFile · 0.80
Future<Void> doReadFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected