32 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_DIX 41 #include "dix/encdec_xc.h" 43 #define DIX_META_VAL_XCODE_OBJ(ptr) M0_XCODE_OBJ(dix_meta_val_xc, ptr) 44 #define DIX_LAYOUT_VAL_XCODE_OBJ(ptr) M0_XCODE_OBJ(m0_dix_layout_xc, ptr) 45 #define DIX_LDESC_VAL_XCODE_OBJ(ptr) M0_XCODE_OBJ(m0_dix_ldesc_xc, ptr) 46 #define DIX_FID_VAL_XCODE_OBJ(ptr) M0_XCODE_OBJ(m0_fid_xc, ptr) 62 for (
i = 0;
rc == 0 &&
i <
nr;
i++) {
86 for (
i = 0;
i <
nr;
i++) {
94 out_fid[
i] =
x.mv_fid;
119 bool enc_keys = keys !=
NULL;
120 bool enc_vals = vals !=
NULL;
124 M0_PRE(enc_keys || enc_vals);
135 for (
i = 0;
rc == 0 &&
i <
nr;
i++) {
165 bool dec_keys = out_fid !=
NULL;
166 bool dec_vals = out_dlay !=
NULL;
170 M0_PRE(dec_keys || dec_vals);
171 for (
i = 0;
rc == 0 &&
i <
nr;
i++) {
203 bool enc_keys = keys !=
NULL;
204 bool enc_vals = vals !=
NULL;
208 M0_PRE(enc_keys || enc_vals);
216 for (
i = 0;
rc == 0 &&
i <
nr;
i++) {
218 *(uint64_t *)keys->
ov_buf[
i] = lid[
i];
242 bool dec_keys = out_lid !=
NULL;
243 bool dec_vals = out_ldesc !=
NULL;
247 M0_PRE(dec_keys || dec_vals);
248 for (
i = 0;
rc == 0 &&
i <
nr;
i++) {
250 out_lid[
i] = *(uint64_t *)keys->
ov_buf[
i];
273 #undef M0_TRACE_SUBSYSTEM
#define DIX_META_VAL_XCODE_OBJ(ptr)
#define DIX_LDESC_VAL_XCODE_OBJ(ptr)
M0_INTERNAL int m0_dix_ldesc_copy(struct m0_dix_ldesc *dst, const struct m0_dix_ldesc *src)
M0_INTERNAL int m0_dix__layout_vals_dec(const struct m0_bufvec *keys, const struct m0_bufvec *vals, struct m0_fid *out_fid, struct m0_dix_layout *out_dlay, uint32_t nr)
M0_INTERNAL int m0_bufvec_alloc(struct m0_bufvec *bufvec, uint32_t num_segs, m0_bcount_t seg_size)
M0_INTERNAL void m0_bufvec_free(struct m0_bufvec *bufvec)
M0_INTERNAL int m0_dix__ldesc_vals_enc(const uint64_t *lid, const struct m0_dix_ldesc *ldesc, uint32_t nr, struct m0_bufvec *keys, struct m0_bufvec *vals)
M0_INTERNAL int m0_dix__layout_vals_enc(const struct m0_fid *fid, const struct m0_dix_layout *dlay, uint32_t nr, struct m0_bufvec *keys, struct m0_bufvec *vals)
return M0_ERR(-EOPNOTSUPP)
M0_INTERNAL int m0_xcode_obj_enc_to_buf(struct m0_xcode_obj *obj, void **buf, m0_bcount_t *len)
M0_INTERNAL int m0_dix__ldesc_vals_dec(const struct m0_bufvec *keys, const struct m0_bufvec *vals, uint64_t *out_lid, struct m0_dix_ldesc *out_ldesc, uint32_t nr)
M0_INTERNAL void m0_dix_ldesc_fini(struct m0_dix_ldesc *ld)
M0_INTERNAL int m0_dix__meta_val_dec(const struct m0_bufvec *vals, struct m0_fid *out_fid, struct m0_dix_ldesc *out_dld, uint32_t nr)
M0_INTERNAL int m0_xcode_obj_dec_from_buf(struct m0_xcode_obj *obj, void *buf, m0_bcount_t len)
#define DIX_LAYOUT_VAL_XCODE_OBJ(ptr)
#define DIX_FID_VAL_XCODE_OBJ(ptr)
M0_INTERNAL int m0_dix__meta_val_enc(const struct m0_fid *fid, const struct m0_dix_ldesc *dld, uint32_t nr, struct m0_bufvec *vals)
M0_INTERNAL int m0_bufvec_empty_alloc(struct m0_bufvec *bufvec, uint32_t num_segs)