Lines Matching refs:src
46 int gzip_parse_header(const unsigned char *src, unsigned long len)
52 flags = src[3];
53 if (src[2] != DEFLATED || (flags & RESERVED) != 0) {
58 i = 12 + src[10] + (src[11] << 8);
60 while (src[i++] != 0)
63 while (src[i++] != 0)
74 int gunzip(void *dst, int dstlen, unsigned char *src, unsigned long *lenp)
76 int offset = gzip_parse_header(src, *lenp);
81 return zunzip(dst, dstlen, src, lenp, 1, offset);
118 int gzwrite(unsigned char *src, int len,
154 flags = src[3];
155 if (src[2] != DEFLATED || (flags & RESERVED) != 0) {
160 i = 12 + src[10] + (src[11] << 8);
162 while (src[i++] != 0)
165 while (src[i++] != 0)
177 memcpy(&expected_crc, src + len - 8, sizeof(expected_crc));
180 memcpy(&szuncompressed, src + len - 4, sizeof(szuncompressed));
205 s.next_in = src + i;
277 int zunzip(void *dst, int dstlen, unsigned char *src, unsigned long *lenp,
292 s.next_in = src + offset;