Lines Matching refs:n_data
372 typedef struct { UChar* data; SizeT n_data; } Frame; member
420 f->n_data = 4 + n_str + 1; in mk_Frame_asciiz()
421 f->data = calloc(f->n_data, 1); in mk_Frame_asciiz()
432 if (fr->n_data < 4) return False; in parse_Frame_noargs()
434 if (fr->n_data != 4) return False; in parse_Frame_noargs()
443 if (fr->n_data < 4) return False; in parse_Frame_asciiz()
445 if (fr->n_data < 5) return False; // else there isn't even enough in parse_Frame_asciiz()
451 if (i >= fr->n_data) break; in parse_Frame_asciiz()
455 assert(i <= fr->n_data); in parse_Frame_asciiz()
456 if (i == fr->n_data-1 && fr->data[i] == 0) { in parse_Frame_asciiz()
468 f->n_data = 4 + 1*8; in mk_Frame_le64()
469 f->data = calloc(f->n_data, 1); in mk_Frame_le64()
479 f->n_data = 4 + 2*8; in mk_Frame_le64_le64()
480 f->data = calloc(f->n_data, 1); in mk_Frame_le64_le64()
493 if (fr->n_data < 4) return False; in parse_Frame_le64_le64_le64()
495 if (fr->n_data != 4 + 3*8) return False; in parse_Frame_le64_le64_le64()
504 ULong n1, ULong n2, ULong n3, ULong n_data, in mk_Frame_le64_le64_le64_bytes() argument
509 f->n_data = 4 + 3*8 + n_data; in mk_Frame_le64_le64_le64_bytes()
510 f->data = calloc(f->n_data, 1); in mk_Frame_le64_le64_le64_bytes()
712 req->n_data = rd_len; in handle_transaction()
715 Int r = my_read(sd, req->data, req->n_data); in handle_transaction()
723 if (req->n_data > 0) in handle_transaction()
724 adler = adler32(adler, req->data, req->n_data); in handle_transaction()
893 write_UInt_le(&wr_first8[4], res->n_data); in handle_transaction()
896 adler = adler32(adler, res->data, res->n_data); in handle_transaction()
901 assert(res->n_data >= 4); // else ill formed -- no KIND field in handle_transaction()
902 r = my_write(sd, res->data, res->n_data); in handle_transaction()
903 if (r != res->n_data) goto fail; in handle_transaction()