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

Method append

fdbclient/BackupContainerLocalDirectory.actor.cpp:42–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 }
41
42 Future<Void> append(const void* data, int len) override {
43 m_buffer.append(m_buffer.arena(), (const uint8_t*)data, len);
44
45 if (m_buffer.size() >= m_blockSize) {
46 return flush(m_blockSize);
47 }
48
49 return Void();
50 }
51
52 Future<Void> flush(int size) {
53 // Avoid empty write

Calls 3

flushFunction · 0.50
VoidClass · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected