Lines Matching refs:buf_offset
55 static zip_cdir_t *_zip_read_cdir(zip_t *za, zip_buffer_t *buffer, zip_uint64_t buf_offset, zip_err…
56 static zip_cdir_t *_zip_read_eocd(zip_buffer_t *buffer, zip_uint64_t buf_offset, unsigned int flags…
57 …_zip_read_eocd64(zip_source_t *src, zip_buffer_t *buffer, zip_uint64_t buf_offset, unsigned int fl…
276 _zip_read_cdir(zip_t *za, zip_buffer_t *buffer, zip_uint64_t buf_offset, zip_error_t *error) in _zip_read_cdir() argument
298 cd = _zip_read_eocd64(za->src, buffer, buf_offset, za->flags, error); in _zip_read_cdir()
302 cd = _zip_read_eocd(buffer, buf_offset, za->flags, error); in _zip_read_cdir()
311 if (cd->offset + cd->size > buf_offset + eocd_offset) { in _zip_read_cdir()
338 if (cd->offset >= buf_offset) { in _zip_read_cdir()
341 _zip_buffer_set_offset(buffer, cd->offset - buf_offset); in _zip_read_cdir()
564 zip_int64_t buf_offset; in _zip_find_central_dir() local
585 if ((buf_offset = zip_source_tell(za->src)) < 0) { in _zip_find_central_dir()
605 if ((cdirnew = _zip_read_cdir(za, buffer, (zip_uint64_t)buf_offset, &error)) != NULL) { in _zip_find_central_dir()
667 _zip_read_eocd(zip_buffer_t *buffer, zip_uint64_t buf_offset, unsigned int flags, zip_error_t *erro… in _zip_read_eocd() argument
704 if (offset+size > buf_offset + eocd_offset) { in _zip_read_eocd()
710 if ((flags & ZIP_CHECKCONS) && offset+size != buf_offset + eocd_offset) { in _zip_read_eocd()
726 _zip_read_eocd64(zip_source_t *src, zip_buffer_t *buffer, zip_uint64_t buf_offset, unsigned int fla… in _zip_read_eocd64() argument
749 if (eocd_offset + EOCD64LEN > eocdloc_offset + buf_offset) { in _zip_read_eocd64()
754 …if (eocd_offset >= buf_offset && eocd_offset + EOCD64LEN <= buf_offset + _zip_buffer_size(buffer))… in _zip_read_eocd64()
755 _zip_buffer_set_offset(buffer, eocd_offset - buf_offset); in _zip_read_eocd64()
779 if ((flags & ZIP_CHECKCONS) && size + eocd_offset + 12 != buf_offset + eocdloc_offset) { in _zip_read_eocd64()
840 if (offset+size > buf_offset + eocd_offset) { in _zip_read_eocd64()
845 if ((flags & ZIP_CHECKCONS) && offset+size != buf_offset + eocd_offset) { in _zip_read_eocd64()