Lines Matching refs:length
40 _zip_read(zip_source_t *src, zip_uint8_t *b, zip_uint64_t length, zip_error_t *error) in _zip_read() argument
44 if (length > ZIP_INT64_MAX) { in _zip_read()
49 if ((n = zip_source_read(src, b, length)) < 0) { in _zip_read()
54 if (n < (zip_int64_t)length) { in _zip_read()
64 _zip_read_data(zip_buffer_t *buffer, zip_source_t *src, size_t length, bool nulp, zip_error_t *erro… in _zip_read_data() argument
68 if (length == 0 && !nulp) { in _zip_read_data()
72 r = (zip_uint8_t *)malloc(length + (nulp ? 1 : 0)); in _zip_read_data()
79 zip_uint8_t *data = _zip_buffer_get(buffer, length); in _zip_read_data()
86 memcpy(r, data, length); in _zip_read_data()
89 if (_zip_read(src, r, length, error) < 0) { in _zip_read_data()
98 r[length] = 0; in _zip_read_data()
99 for (o=r; o<r+length; o++) in _zip_read_data()
124 _zip_write(zip_t *za, const void *data, zip_uint64_t length) in _zip_write() argument
128 if ((n = zip_source_write(za->src, data, length)) < 0) { in _zip_write()
132 if ((zip_uint64_t)n != length) { in _zip_write()