Lines Matching refs:error
57 zip_error_t error; member
68 static int buffer_seek(buffer_t *buffer, void *data, zip_uint64_t len, zip_error_t *error);
80 return zip_source_buffer_create(data, len, freep, &za->error); in zip_source_buffer()
85 zip_source_buffer_create(const void *data, zip_uint64_t len, int freep, zip_error_t *error) in zip_source_buffer_create() argument
91 zip_error_set(error, ZIP_ER_INVAL, 0); in zip_source_buffer_create()
96 zip_error_set(error, ZIP_ER_MEMORY, 0); in zip_source_buffer_create()
101 zip_error_set(error, ZIP_ER_MEMORY, 0); in zip_source_buffer_create()
108 zip_error_init(&ctx->error); in zip_source_buffer_create()
110 if ((zs=zip_source_function_create(read_data, ctx, error)) == NULL) { in zip_source_buffer_create()
128 zip_error_set(&ctx->error, ZIP_ER_MEMORY, 0); in read_data()
143 return zip_error_to_data(&ctx->error, data, len); in read_data()
157 zip_error_set(&ctx->error, ZIP_ER_INVAL, 0); in read_data()
166 zip_error_set(&ctx->error, ZIP_ER_MEMORY, 0); in read_data()
181 return buffer_seek(ctx->in, data, len, &ctx->error); in read_data()
184 return buffer_seek(ctx->out, data, len, &ctx->error); in read_data()
191 zip_error_set(&ctx->error, ZIP_ER_INVAL, 0); in read_data()
213 zip_error_set(&ctx->error, ZIP_ER_TELL, EOVERFLOW); in read_data()
221 zip_error_set(&ctx->error, ZIP_ER_TELL, EOVERFLOW); in read_data()
228 zip_error_set(&ctx->error, ZIP_ER_INVAL, 0); in read_data()
231 return buffer_write(ctx->out, data, len, &ctx->error); in read_data()
234 zip_error_set(&ctx->error, ZIP_ER_OPNOTSUPP, 0); in read_data()
361 buffer_seek(buffer_t *buffer, void *data, zip_uint64_t len, zip_error_t *error) in buffer_seek() argument
363 …nt64_t new_offset = zip_source_seek_compute_offset(buffer->offset, buffer->size, data, len, error); in buffer_seek()
375 buffer_write(buffer_t *buffer, const zip_uint8_t *data, zip_uint64_t length, zip_error_t *error) in buffer_write() argument
381 zip_error_set(error, ZIP_ER_INVAL, 0); in buffer_write()
399 zip_error_set(error, ZIP_ER_MEMORY, 0); in buffer_write()
409 zip_error_set(error, ZIP_ER_MEMORY, 0); in buffer_write()