MCPcopy Create free account
hub / github.com/ceph/ceph / round_trip_encode

Function round_trip_encode

src/include/encoding.h:381–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379
380template <std::integral Rep, typename Period>
381void round_trip_encode(const std::chrono::duration<Rep, Period>& d,
382 ceph::bufferlist &bl) {
383 const Rep r = d.count();
384 encode(r, bl);
385}
386
387template <std::integral Rep, typename Period>
388void round_trip_decode(std::chrono::duration<Rep, Period>& d,

Callers 1

encodeMethod · 0.85

Calls 2

encodeFunction · 0.70
countMethod · 0.45

Tested by

no test coverage detected