Lines Matching defs:sr
116 isc_region_t sr;
129 isc_buffer_activeregion(source, &sr);
130 if (sr.length < 2)
136 RETERR(mem_tobuffer(target, sr.base, 2));
137 len = sr.base[1];
138 isc_region_consume(&sr, 2);
144 if (sr.length < len || len == 0)
149 if (!alphanumeric[sr.base[i]])
154 isc_buffer_forward(source, sr.length);
155 return (mem_tobuffer(target, sr.base, sr.length));
236 isc_region_t sr;
247 dns_rdata_toregion(rdata, &sr);
252 if (sr.length < 1)
254 caa->flags = uint8_fromregion(&sr);
255 isc_region_consume(&sr, 1);
260 if (sr.length < 1)
262 caa->tag_len = uint8_fromregion(&sr);
263 isc_region_consume(&sr, 1);
268 if (sr.length < caa->tag_len)
270 caa->tag = mem_maybedup(mctx, sr.base, caa->tag_len);
273 isc_region_consume(&sr, caa->tag_len);
278 caa->value_len = sr.length;
279 caa->value = mem_maybedup(mctx, sr.base, sr.length);