Lines Matching defs:ref
1093 ndr_size_is(ndr_ref_t *ref)
1095 ndr_stream_t *nds = ref->stream;
1105 assert(ref->inner_flags & NDR_F_SIZE_IS);
1106 size_is = ref->size_is;
1109 NDR_SET_ERROR(ref, NDR_ERR_SIZE_IS_UNEXPECTED);
1114 NDR_SET_ERROR(ref, NDR_ERR_SIZE_IS_DUPLICATED);
1143 * intended size (ref->size_is) matches the sizing header.
1146 NDR_SET_ERROR(ref, NDR_ERR_SIZE_IS_MISMATCH_PDU);
1157 outer_ref->size_is = ref->size_is;
1772 int ndr_##TYPE(struct ndr_reference *ref) { \
1773 return (ndr_basic_integer(ref, SIZE)); \
1788 int ndr_s##TYPE(struct ndr_reference *ref) { \
1789 return (ndr_string_basic_integer(ref, &ndt_##TYPE)); \
1810 ndr_basic_integer(ndr_ref_t *ref, unsigned size)
1812 ndr_stream_t *nds = ref->stream;
1813 char *valp = (char *)ref->datum;
1818 rc = NDS_PUT_PDU(nds, ref->pdu_offset, size,
1819 valp, nds->swap, ref);
1823 rc = NDS_GET_PDU(nds, ref->pdu_offset, size,
1824 valp, nds->swap, ref);
1828 NDR_SET_ERROR(ref, NDR_ERR_M_OP_INVALID);