Lines Matching refs:fr
428 static Bool parse_Frame_noargs ( Frame* fr, const HChar* tag ) in parse_Frame_noargs() argument
431 if (!fr || !fr->data) return False; in parse_Frame_noargs()
432 if (fr->n_data < 4) return False; in parse_Frame_noargs()
433 if (memcmp(&fr->data[0], tag, 4) != 0) return False; in parse_Frame_noargs()
434 if (fr->n_data != 4) return False; in parse_Frame_noargs()
438 static Bool parse_Frame_asciiz ( Frame* fr, const HChar* tag, in parse_Frame_asciiz() argument
442 if (!fr || !fr->data) return False; in parse_Frame_asciiz()
443 if (fr->n_data < 4) return False; in parse_Frame_asciiz()
444 if (memcmp(&fr->data[0], tag, 4) != 0) 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()
452 if (fr->data[i] == 0) 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()
457 *str = &fr->data[4]; in parse_Frame_asciiz()
487 static Bool parse_Frame_le64_le64_le64 ( Frame* fr, const HChar* tag, in parse_Frame_le64_le64_le64() argument
492 if (!fr || !fr->data) return False; in parse_Frame_le64_le64_le64()
493 if (fr->n_data < 4) return False; in parse_Frame_le64_le64_le64()
494 if (memcmp(&fr->data[0], tag, 4) != 0) return False; in parse_Frame_le64_le64_le64()
495 if (fr->n_data != 4 + 3*8) return False; in parse_Frame_le64_le64_le64()
496 *n1 = read_ULong_le(&fr->data[4 + 0*8]); in parse_Frame_le64_le64_le64()
497 *n2 = read_ULong_le(&fr->data[4 + 1*8]); in parse_Frame_le64_le64_le64()
498 *n3 = read_ULong_le(&fr->data[4 + 2*8]); in parse_Frame_le64_le64_le64()
519 static void free_Frame ( Frame* fr ) in free_Frame() argument
521 assert(fr && fr->data); in free_Frame()
522 free(fr->data); in free_Frame()
523 free(fr); in free_Frame()