Lines Matching defs:txt
134 dns_rdata_txt_t *txt = source;
140 REQUIRE(txt->common.rdtype == type);
141 REQUIRE(txt->common.rdclass == rdclass);
142 REQUIRE(txt->txt != NULL && txt->txt_len != 0);
147 region.base = txt->txt;
148 region.length = txt->txt_len;
157 return (mem_tobuffer(target, txt->txt, txt->txt_len));
162 dns_rdata_txt_t *txt = target;
168 txt->common.rdclass = rdata->rdclass;
169 txt->common.rdtype = rdata->type;
170 ISC_LINK_INIT(&txt->common, link);
173 txt->txt_len = r.length;
174 txt->txt = mem_maybedup(mctx, r.base, r.length);
175 if (txt->txt == NULL)
178 txt->offset = 0;
179 txt->mctx = mctx;
185 dns_rdata_txt_t *txt = source;
188 REQUIRE(txt->common.rdtype == 16);
190 if (txt->mctx == NULL)
193 if (txt->txt != NULL)
194 isc_mem_free(txt->mctx, txt->txt);
195 txt->mctx = NULL;