Lines Matching refs:region

72 	isc_region_t region;
81 dns_rdata_toregion(rdata, &region);
86 n = uint32_fromregion(&region);
87 isc_region_consume(&region, 4);
94 n = uint32_fromregion(&region);
95 isc_region_consume(&region, 4);
102 n = uint8_fromregion(&region);
103 isc_region_consume(&region, 1);
110 RETERR(txt_totext(&region, ISC_TRUE, target));
116 if (region.length == 0) {
119 return (isc_base64_totext(&region, 60, "", target));
125 isc_region_t region;
133 isc_buffer_activeregion(source, &region);
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, &region);
165 return (mem_tobuffer(target, region.base, region.length));
206 isc_region_t region;
216 dns_rdata_toregion(rdata, &region);
221 if (region.length < 4) {
224 doa->enterprise = uint32_fromregion(&region);
225 isc_region_consume(&region, 4);
230 if (region.length < 4) {
233 doa->type = uint32_fromregion(&region);
234 isc_region_consume(&region, 4);
239 if (region.length < 1) {
242 doa->location = uint8_fromregion(&region);
243 isc_region_consume(&region, 1);
248 if (region.length < 1) {
251 doa->mediatype_len = uint8_fromregion(&region);
252 isc_region_consume(&region, 1);
253 INSIST(doa->mediatype_len <= region.length);
254 doa->mediatype = mem_maybedup(mctx, region.base, doa->mediatype_len);
258 isc_region_consume(&region, doa->mediatype_len);
263 doa->data_len = region.length;
266 doa->data = mem_maybedup(mctx, region.base, doa->data_len);
270 isc_region_consume(&region, doa->data_len);