Lines Matching refs:ptr
566 char *base, *limit, *ptr; member
573 inb->ptr = inb->base; in inbuf_init()
578 if ((inb->ptr + len) > inb->limit) in flat_read_chunk()
581 memcpy(p, inb->ptr, len); in flat_read_chunk()
583 inb->ptr += len; in flat_read_chunk()
590 assert(((inb->ptr - inb->base) % sizeof(val)) == 0); in flat_read_word()
599 int off = inb->ptr - inb->base; in flat_realign()
601 inb->ptr = inb->base + ALIGN(off, align); in flat_realign()
602 if (inb->ptr > inb->limit) in flat_realign()
609 const char *p = inb->ptr; in flat_read_string()
618 str = xstrdup(inb->ptr); in flat_read_string()
620 inb->ptr += len; in flat_read_string()