Home | History | Annotate | Download | only in base

Lines Matching refs:pos

32   const uint8* pos = reinterpret_cast<const uint8*>(inbuf);
33 const uint8* const end = pos + inbuf_len;
35 while ( pos < end ) {
38 if ( *pos != magic[0] ) return INVALID_HEADER;
39 pos++;
43 if ( *pos != magic[1] ) return INVALID_HEADER;
44 pos++;
48 if ( *pos != Z_DEFLATED ) return INVALID_HEADER;
49 pos++;
53 flags_ = (*pos) & (FLAG_FHCRC | FLAG_FEXTRA |
55 pos++;
60 pos++;
64 pos++;
68 pos++;
72 pos++;
77 pos++;
82 pos++;
93 extra_length_ = *pos;
94 pos++;
98 extra_length_ += *pos << 8;
99 pos++;
110 (end - pos)));
111 pos += num_extra_bytes;
126 pos = reinterpret_cast<const uint8*>(memchr(pos, '\0', (end - pos)));
127 if ( pos != NULL ) {
128 pos++; // advance past the '\0'
132 pos = end; // everything we have so far is part of the FNAME
142 pos = reinterpret_cast<const uint8*>(memchr(pos, '\0', (end - pos)));
143 if ( pos != NULL ) {
144 pos++; // advance past the '\0'
148 pos = end; // everything we have so far is part of the FNAME
157 pos++;
162 pos++;
168 *header_end = reinterpret_cast<const char*>(pos);
174 *header_end = reinterpret_cast<const char*>(pos);