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

Method getEncodedRow

fdbserver/KeyValueStoreSQLite.actor.cpp:771–778  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

769 return size;
770 }
771 Value getEncodedRow() {
772 int s = size();
773 Value v;
774 uint8_t* d = new (v.arena()) uint8_t[s];
775 db.checkError("BtreeKey", sqlite3BtreeKey(cursor, 0, s, d));
776 ((ValueRef&)v) = KeyRef(d, s);
777 return v;
778 }
779 ValueRef getEncodedRow(Arena& arena) {
780 int s = size();
781 uint8_t* d = new (arena) uint8_t[s];

Callers 2

fastClearMethod · 0.80
parseMethod · 0.80

Calls 4

sqlite3BtreeKeyFunction · 0.85
KeyRefClass · 0.85
sizeFunction · 0.50
checkErrorMethod · 0.45

Tested by

no test coverage detected