Lines Matching defs:cursor
32 size_t cursor, datalen = pelen;
45 cursor = sizeof(*mz);
47 chkaddr(cursor, mz->peaddr, sizeof(*pe));
51 cursor = mz->peaddr + sizeof(*pe);
53 chkaddr(0, cursor, sizeof(pe32->magic));
54 pe32 = pebuf + cursor;
55 pe64 = pebuf + cursor;
59 chkaddr(0, cursor, sizeof(*pe32));
63 cursor += sizeof(*pe32);
68 chkaddr(0, cursor, sizeof(*pe64));
72 cursor += sizeof(*pe64);
84 if (cursor >= ctx->header_size || ctx->header_size >= datalen)
87 if (ctx->n_data_dirents > (ctx->header_size - cursor) / sizeof(*dde))
90 ddir = pebuf + cursor;
91 cursor += sizeof(*dde) * ctx->n_data_dirents;
111 if (ctx->n_sections > (ctx->header_size - cursor) / sizeof(*sec))
113 ctx->secs = secs = pebuf + cursor;