Lines Matching refs:uc
94 getlen(const unsigned char **uc) in getlen() argument
97 memcpy(&n, *uc, sizeof(n)); in getlen()
98 *uc += sizeof(n); in getlen()
110 simh_parse(const unsigned char *uc, const unsigned char *ue) in simh_parse() argument
113 const unsigned char *orig_uc = uc; in simh_parse()
118 while (ue - uc >= CAST(ptrdiff_t, sizeof(nbytes))) { in simh_parse()
119 nbytes = getlen(&uc); in simh_parse()
132 uc += nbytes; in simh_parse()
133 if (ue - uc < CAST(ptrdiff_t, sizeof(nbytes))) in simh_parse()
135 cbytes = getlen(&uc); in simh_parse()
140 if (nt * sizeof(uint32_t) == CAST(size_t, uc - orig_uc)) in simh_parse()
151 const unsigned char *uc = CAST(const unsigned char *, b->fbuf); in file_is_simh() local
152 const unsigned char *ue = uc + b->flen; in file_is_simh()
158 if (!simh_parse(uc, ue)) in file_is_simh()