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

Function round_trip_decode

src/include/encoding.h:388–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386
387template <std::integral Rep, typename Period>
388void round_trip_decode(std::chrono::duration<Rep, Period>& d,
389 bufferlist::const_iterator& p) {
390 Rep r;
391 decode(r, p);
392 d = std::chrono::duration<Rep, Period>(r);
393}
394
395template <typename Clock, typename Duration>
396void round_trip_encode(const std::chrono::time_point<Clock, Duration>& t,

Callers 1

decodeMethod · 0.85

Calls 1

decodeFunction · 0.70

Tested by

no test coverage detected