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

Method write

flow/include/flow/TDMetric.actor.h:408–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406struct FieldValueBlockEncoding {
407 FieldValueBlockEncoding() : prev(0) {}
408 inline void write(BinaryWriter& w, T v) {
409 w << CompressedInt<T>(v - prev);
410 prev = v;
411 }
412 T read(BinaryReader& r) {
413 CompressedInt<T> v;
414 r >> v;

Callers 3

logMethod · 0.45
writeMethod · 0.45
getLatestAsValueMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected