Lines Matching refs:bufhdr
731 tnf_array_header_t *bufhdr; in tnf_string_1() local
743 record_size = sizeof (*bufhdr) + TNF_STRING_ROUNDUP(string_size + 1); in tnf_string_1()
745 ALLOC2(ops, record_size, bufhdr, ops->mode); in tnf_string_1()
747 ASSIGN(bufhdr, tag, tag_index); in tnf_string_1()
749 ASSIGN(bufhdr, self_size, record_size); in tnf_string_1()
752 (void) bcopy((caddr_t)string, (char *)bufhdr + sizeof (*bufhdr), in tnf_string_1()
755 (void) memcpy((char *)bufhdr + sizeof (*bufhdr), string, string_size); in tnf_string_1()
758 ((char *)bufhdr + sizeof (*bufhdr))[string_size] = '\0'; in tnf_string_1()
760 return (tnf_ref32(ops, (tnf_record_p)bufhdr, reference)); in tnf_string_1()
775 tnf_array_header_t *bufhdr; in tnf_string_array_1() local
783 record_size = sizeof (*bufhdr); in tnf_string_array_1()
788 ALLOC2(ops, record_size, bufhdr, ops->mode); in tnf_string_array_1()
790 ASSIGN(bufhdr, tag, tag_index); in tnf_string_array_1()
792 ASSIGN(bufhdr, self_size, record_size); in tnf_string_array_1()
796 ref_p = (tnf_reference_t *)((char *)bufhdr + sizeof (*bufhdr)); in tnf_string_array_1()
803 return (tnf_ref32(ops, (tnf_record_p) bufhdr, reference)); in tnf_string_array_1()
844 tnf_array_header_t *bufhdr; in tnf_tag_array_1() local
854 record_size = sizeof (*bufhdr); in tnf_tag_array_1()
859 ALLOC2(ops, record_size, bufhdr, ops->mode); in tnf_tag_array_1()
861 ASSIGN(bufhdr, tag, tag_index); in tnf_tag_array_1()
863 ASSIGN(bufhdr, self_size, record_size); in tnf_tag_array_1()
867 ref_p = (tnf_reference_t *)((char *)bufhdr + sizeof (*bufhdr)); in tnf_tag_array_1()
875 return (tnf_ref32(ops, (tnf_record_p)bufhdr, reference)); in tnf_tag_array_1()