Lines Matching defs:sr
128 isc_region_t sr, dr;
138 dns_rdata_toregion(rdata, &sr);
145 dns_name_fromregion(&name, &sr);
149 isc_region_consume(&sr, name_length(&name));
154 n = uint32_fromregion(&sr);
155 isc_region_consume(&sr, 4);
162 n = uint32_fromregion(&sr);
163 isc_region_consume(&sr, 4);
170 n = uint16_fromregion(&sr);
171 isc_region_consume(&sr, 2);
178 n = uint16_fromregion(&sr);
179 isc_region_consume(&sr, 2);
190 n = uint16_fromregion(&sr);
191 isc_region_consume(&sr, 2);
198 REQUIRE(n <= sr.length);
199 dr = sr;
210 isc_region_consume(&sr, n);
215 n = uint16_fromregion(&sr);
216 isc_region_consume(&sr, 2);
223 REQUIRE(n <= sr.length);
225 dr = sr;
240 isc_region_t sr;
263 isc_buffer_activeregion(source, &sr);
264 if (sr.length < 12)
266 RETERR(mem_tobuffer(target, sr.base, 12));
267 isc_region_consume(&sr, 12);
273 if (sr.length < 2)
275 n = uint16_fromregion(&sr);
276 if (sr.length < n + 2)
278 RETERR(mem_tobuffer(target, sr.base, n + 2));
279 isc_region_consume(&sr, n + 2);
285 if (sr.length < 2)
287 n = uint16_fromregion(&sr);
288 if (sr.length < n + 2)
291 return (mem_tobuffer(target, sr.base, n + 2));
296 isc_region_t sr;
307 dns_rdata_toregion(rdata, &sr);
309 dns_name_fromregion(&name, &sr);
311 isc_region_consume(&sr, name_length(&name));
313 return (mem_tobuffer(target, sr.base, sr.length));
408 isc_region_t sr;
418 dns_rdata_toregion(rdata, &sr);
424 dns_name_fromregion(&alg, &sr);
427 isc_region_consume(&sr, name_length(&tkey->algorithm));
432 tkey->inception = uint32_fromregion(&sr);
433 isc_region_consume(&sr, 4);
438 tkey->expire = uint32_fromregion(&sr);
439 isc_region_consume(&sr, 4);
444 tkey->mode = uint16_fromregion(&sr);
445 isc_region_consume(&sr, 2);
450 tkey->error = uint16_fromregion(&sr);
451 isc_region_consume(&sr, 2);
456 tkey->keylen = uint16_fromregion(&sr);
457 isc_region_consume(&sr, 2);
462 tkey->key = mem_maybedup(mctx, sr.base, tkey->keylen);
465 isc_region_consume(&sr, tkey->keylen);
470 tkey->otherlen = uint16_fromregion(&sr);
471 isc_region_consume(&sr, 2);
476 tkey->other = mem_maybedup(mctx, sr.base, tkey->otherlen);