Lines Matching refs:region
72 isc_region_t region;
81 dns_rdata_toregion(rdata, ®ion);
86 n = uint32_fromregion(®ion);
87 isc_region_consume(®ion, 4);
94 n = uint32_fromregion(®ion);
95 isc_region_consume(®ion, 4);
102 n = uint8_fromregion(®ion);
103 isc_region_consume(®ion, 1);
110 RETERR(txt_totext(®ion, ISC_TRUE, target));
116 if (region.length == 0) {
119 return (isc_base64_totext(®ion, 60, "", target));
125 isc_region_t region;
133 isc_buffer_activeregion(source, ®ion);
139 if (region.length < 4 + 4 + 1 + 1) {
146 if (region.base[9] > region.length - 10) {
150 isc_buffer_forward(source, region.length);
151 return (mem_tobuffer(target, region.base, region.length));
156 isc_region_t region;
164 dns_rdata_toregion(rdata, ®ion);
165 return (mem_tobuffer(target, region.base, region.length));
206 isc_region_t region;
216 dns_rdata_toregion(rdata, ®ion);
221 if (region.length < 4) {
224 doa->enterprise = uint32_fromregion(®ion);
225 isc_region_consume(®ion, 4);
230 if (region.length < 4) {
233 doa->type = uint32_fromregion(®ion);
234 isc_region_consume(®ion, 4);
239 if (region.length < 1) {
242 doa->location = uint8_fromregion(®ion);
243 isc_region_consume(®ion, 1);
248 if (region.length < 1) {
251 doa->mediatype_len = uint8_fromregion(®ion);
252 isc_region_consume(®ion, 1);
253 INSIST(doa->mediatype_len <= region.length);
254 doa->mediatype = mem_maybedup(mctx, region.base, doa->mediatype_len);
258 isc_region_consume(®ion, doa->mediatype_len);
263 doa->data_len = region.length;
266 doa->data = mem_maybedup(mctx, region.base, doa->data_len);
270 isc_region_consume(®ion, doa->data_len);