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

Method encode

src/include/utime.h:162–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160 "utime_t have padding");
161 }
162 void encode(ceph::buffer::list &bl) const {
163#if defined(CEPH_LITTLE_ENDIAN)
164 bl.append((char *)(this), sizeof(__u32) + sizeof(__u32));
165#else
166 using ceph::encode;
167 encode(tv.tv_sec, bl);
168 encode(tv.tv_nsec, bl);
169#endif
170 }
171 void decode(ceph::buffer::list::const_iterator &p) {
172#if defined(CEPH_LITTLE_ENDIAN)
173 p.copy(sizeof(__u32) + sizeof(__u32), (char *)(this));

Callers

nothing calls this directly

Calls 2

encodeFunction · 0.70
appendMethod · 0.45

Tested by

no test coverage detected