D | sparse.cpp | 169 int (*write)(void* priv, const void* data, size_t len), void* priv) { in sparse_file_callback() argument 175 out = output_file_open_callback(write, priv, s->block_size, s->len, false, sparse, chunks, crc); in sparse_file_callback() 187 void* priv; member 190 …int (*write)(void* priv, const void* data, size_t len, unsigned int block, unsigned int nr_blocks); 193 static int foreach_chunk_write(void* priv, const void* data, size_t len) { in foreach_chunk_write() argument 194 struct chunk_data* chk = reinterpret_cast<chunk_data*>(priv); in foreach_chunk_write() 196 return chk->write(chk->priv, data, len, chk->block, chk->nr_blocks); in foreach_chunk_write() 200 int (*write)(void* priv, const void* data, size_t len, in sparse_file_foreach_chunk() argument 202 void* priv) { in sparse_file_foreach_chunk() 209 chk.priv = priv; in sparse_file_foreach_chunk() [all …]
|