Lines Matching defs:sbuf
527 ProtobufCBufferSimple sbuf;
532 memset(&sbuf, 0, sizeof(sbuf));
533 sbuf.base.append = protobuf_c_buffer_simple_append;
534 sbuf.len = 0;
535 sbuf.alloced = DNSTAP_INITIAL_BUF_SIZE;
538 sbuf.data = malloc(sbuf.alloced);
539 if (sbuf.data == NULL)
541 sbuf.must_free_data = 1;
543 *sz = dnstap__dnstap__pack_to_buffer(d, (ProtobufCBuffer *) &sbuf);
544 if (sbuf.data == NULL)
546 *buf = sbuf.data;