Lines Matching refs:zip_uint64_t
44 zip_uint64_t fragment_size; /* size of each fragment */
47 zip_uint64_t nfragments; /* number of allocated fragments */
48 zip_uint64_t fragments_capacity; /* size of fragments (number of pointers) */
49 zip_uint64_t size; /* size of data in bytes */
50 zip_uint64_t offset; /* current offset */
64 static buffer_t *buffer_new(zip_uint64_t fragment_size);
65 static buffer_t *buffer_new_read(const void *data, zip_uint64_t length, int free_data);
66 static buffer_t *buffer_new_write(zip_uint64_t fragment_size);
67 static zip_int64_t buffer_read(buffer_t *buffer, zip_uint8_t *data, zip_uint64_t length);
68 static int buffer_seek(buffer_t *buffer, void *data, zip_uint64_t len, zip_error_t *error);
69 static zip_int64_t buffer_write(buffer_t *buffer, const zip_uint8_t *data, zip_uint64_t length, zip…
71 static zip_int64_t read_data(void *, void *, zip_uint64_t, zip_source_cmd_t);
75 zip_source_buffer(zip_t *za, const void *data, zip_uint64_t len, int freep) 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()
121 read_data(void *state, void *data, zip_uint64_t len, zip_source_cmd_t cmd) in read_data()
248 zip_uint64_t i; in buffer_free()
260 buffer_new(zip_uint64_t fragment_size) in buffer_new()
281 buffer_new_read(const void *data, zip_uint64_t length, int free_data) in buffer_new_read()
308 buffer_new_write(zip_uint64_t fragment_size) in buffer_new_write()
329 buffer_read(buffer_t *buffer, zip_uint8_t *data, zip_uint64_t length) in buffer_read()
331 zip_uint64_t n, i, fragment_offset; in buffer_read()
346 zip_uint64_t left = ZIP_MIN(length - n, buffer->fragment_size - fragment_offset); in buffer_read()
361 buffer_seek(buffer_t *buffer, void *data, zip_uint64_t len, zip_error_t *error) in buffer_seek()
369 buffer->offset = (zip_uint64_t)new_offset; 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()
377 zip_uint64_t n, i, fragment_offset; in buffer_write()
387 …zip_uint64_t needed_fragments = (buffer->offset + length + buffer->fragment_size - 1) / buffer->fr… in buffer_write()
390 zip_uint64_t new_capacity = buffer->fragments_capacity; in buffer_write()
420 zip_uint64_t left = ZIP_MIN(length - n, buffer->fragment_size - fragment_offset); in buffer_write()