MCPcopy Create free account
hub / github.com/apple/foundationdb / pop_front

Method pop_front

fdbserver/DiskQueue.actor.cpp:75–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 return p;
74 }
75 StringRef pop_front(int bytes) {
76 ASSERT(bytes <= str.size());
77 StringRef result = str.substr(0, bytes);
78 str.contents() = str.substr(bytes);
79 return result;
80 }
81 void alignReserve(int alignment, int size) {
82 ASSERT(alignment && (alignment & (alignment - 1)) == 0); // alignment is a power of two
83

Callers 15

eraseMessagesBeforeMethod · 0.45
commitMessagesFunction · 0.45
removeLogFunction · 0.45
updateRequestBucketsMethod · 0.45
dropRequestFromQueueFunction · 0.45
eraseMessagesBeforeMethod · 0.45

Calls 2

substrMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected