| 78 | } |
| 79 | template<class T> |
| 80 | inline void decode_raw(T& t, bufferlist::const_iterator &p) |
| 81 | { |
| 82 | p.copy(sizeof(t), (char*)&t); |
| 83 | } |
| 84 | |
| 85 | #define WRITE_RAW_ENCODER(type) \ |
| 86 | inline void encode(const type &v, ::ceph::bufferlist& bl, uint64_t features=0) { ::ceph::encode_raw(v, bl); } \ |