Searched refs:fragment_offset (Results 1 – 1 of 1) sorted by relevance
/PHP-7.1/ext/zip/lib/ |
H A D | zip_source_buffer.c | 331 zip_uint64_t n, i, fragment_offset; in buffer_read() local 343 fragment_offset = buffer->offset % buffer->fragment_size; in buffer_read() 346 zip_uint64_t left = ZIP_MIN(length - n, buffer->fragment_size - fragment_offset); in buffer_read() 348 memcpy(data + n, buffer->fragments[i] + fragment_offset, left); in buffer_read() 352 fragment_offset = 0; in buffer_read() 377 zip_uint64_t n, i, fragment_offset; in buffer_write() local 417 fragment_offset = buffer->offset % buffer->fragment_size; in buffer_write() 420 zip_uint64_t left = ZIP_MIN(length - n, buffer->fragment_size - fragment_offset); in buffer_write() 422 memcpy(buffer->fragments[i] + fragment_offset, data + n, left); in buffer_write() 426 fragment_offset = 0; in buffer_write()
|
Completed in 4 milliseconds