Lines Matching refs:data
59 const char *data;
65 data_holder_t data;
97 delete_data(void *data, void *arg) {
99 UNUSED(data);
106 data_holder_t *data = (data_holder_t *)datap;
114 REQUIRE(data != NULL);
115 REQUIRE((data->len == 0 && data->data == NULL) ||
116 (data->len != 0 && data->data != NULL));
122 temp = *data;
123 temp.data = (data->len == 0
131 if (data->len > 0) {
132 isc_crc64_update(crc, (const void *)data->data, data->len);
133 ret = fwrite(data->data, data->len, 1, file);
145 data_holder_t *data = p->data;
156 if (data == NULL)
157 printf("fixing data: data NULL\n");
159 printf("fixing data: len %d, data %p\n", data->len, data->data);
161 if (data == NULL ||
162 (data->len == 0 && data->data != NULL) ||
163 (data->len != 0 && data->data == NULL))
168 if (data->len > (int) size || data->data > (const char *) max) {
169 printf("data invalid\n");
173 isc_crc64_update(crc, (void *)data, sizeof(*data));
175 data->data = (data->len == 0)
177 : (char *)data + sizeof(data_holder_t);
179 if (data->len > 0)
180 isc_crc64_update(crc, (const void *)data->data, data->len);
186 * Load test data into the RBT.
200 while (testdatap->name != NULL && testdatap->data.data != NULL) {
214 result = dns_rbt_addname(rbt, name, &testdatap->data);
234 data_holder_t *data;
242 while (testdatap->name != NULL && testdatap->data.data != NULL) {
256 data = NULL;
258 (void *) &data);
268 data_holder_t *data = (data_holder_t *)datap;
270 fprintf(out, "%d bytes, %s", data->len, data->data);