| 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)); |