Lines Matching refs:error
45 zip_error_t error; member
56 return _zip_source_window_new(src, start, len, NULL, &za->error); in zip_source_window()
61 …new(zip_source_t *src, zip_uint64_t start, zip_uint64_t length, zip_stat_t *st, zip_error_t *error) in _zip_source_window_new() argument
66 zip_error_set(error, ZIP_ER_INVAL, 0); in _zip_source_window_new()
71 zip_error_set(error, ZIP_ER_MEMORY, 0); in _zip_source_window_new()
78 zip_error_init(&ctx->error); in _zip_source_window_new()
83 if (_zip_stat_merge(&ctx->stat, st, error) < 0) { in _zip_source_window_new()
89 return zip_source_layered_create(src, window_read, ctx, error); in _zip_source_window_new()
107 if (zip_error_code_zip(&src->error) == ZIP_ER_OK) { in _zip_source_invalidate()
108 zip_error_set(&src->error, ZIP_ER_ZIPCLOSED, 0); in _zip_source_invalidate()
128 return zip_error_to_data(&ctx->error, data, len); in window_read()
139 _zip_error_set_from_source(&ctx->error, src); in window_read()
143 zip_error_set(&ctx->error, ZIP_ER_EOF, 0); in window_read()
161 _zip_error_set_from_source(&ctx->error, src); in window_read()
167 zip_error_set(&ctx->error, ZIP_ER_EOF, 0); in window_read()
175 zip_error_set(&ctx->error, ZIP_ER_EOF, 0); in window_read()
183 …ource_seek_compute_offset(ctx->offset - ctx->start, ctx->end - ctx->start, data, len, &ctx->error); in window_read()
199 if (_zip_stat_merge(st, &ctx->stat, &ctx->error) < 0) { in window_read()
212 zip_error_set(&ctx->error, ZIP_ER_OPNOTSUPP, 0); in window_read()
243 zip_error_set(&za->error, ZIP_ER_MEMORY, 0); in _zip_register_source()