Home | History | Annotate | Download | only in base

Lines Matching refs:pos

35   const uint8* pos = reinterpret_cast<const uint8*>(inbuf);
36 const uint8* const end = pos + inbuf_len;
38 while ( pos < end ) {
41 if ( *pos != magic[0] ) return INVALID_HEADER;
42 pos++;
46 if ( *pos != magic[1] ) return INVALID_HEADER;
47 pos++;
51 if ( *pos != Z_DEFLATED ) return INVALID_HEADER;
52 pos++;
56 flags_ = (*pos) & (FLAG_FHCRC | FLAG_FEXTRA |
58 pos++;
63 pos++;
67 pos++;
71 pos++;
75 pos++;
80 pos++;
85 pos++;
96 extra_length_ = *pos;
97 pos++;
101 extra_length_ += *pos << 8;
102 pos++;
116 (end - pos)));
117 pos += num_extra_bytes;
132 pos = reinterpret_cast<const uint8*>(memchr(pos, '\0', (end - pos)));
133 if ( pos != NULL ) {
134 pos++; // advance past the '\0'
138 pos = end; // everything we have so far is part of the FNAME
148 pos = reinterpret_cast<const uint8*>(memchr(pos, '\0', (end - pos)));
149 if ( pos != NULL ) {
150 pos++; // advance past the '\0'
154 pos = end; // everything we have so far is part of the FNAME
163 pos++;
168 pos++;
174 *header_end = reinterpret_cast<const char*>(pos);
180 *header_end = reinterpret_cast<const char*>(pos);