Lines Matching refs:buffer

211     zip_buffer_t *buffer;  in _zip_ef_parse()  local
214 if ((buffer = _zip_buffer_new((zip_uint8_t *)data, len)) == NULL) { in _zip_ef_parse()
221 while (_zip_buffer_ok(buffer) && _zip_buffer_left(buffer) >= 4) { in _zip_ef_parse()
225 fid = _zip_buffer_get_16(buffer); in _zip_ef_parse()
226 flen = _zip_buffer_get_16(buffer); in _zip_ef_parse()
227 ef_data = _zip_buffer_get(buffer, flen); in _zip_ef_parse()
231 _zip_buffer_free(buffer); in _zip_ef_parse()
238 _zip_buffer_free(buffer); in _zip_ef_parse()
251 if (!_zip_buffer_eof(buffer)) { in _zip_ef_parse()
254 size_t glen = _zip_buffer_left(buffer); in _zip_ef_parse()
256 garbage = _zip_buffer_get(buffer, glen); in _zip_ef_parse()
259 _zip_buffer_free(buffer); in _zip_ef_parse()
265 _zip_buffer_free(buffer); in _zip_ef_parse()
327 zip_buffer_t *buffer = _zip_buffer_new(b, sizeof(b)); in _zip_ef_write() local
329 if (buffer == NULL) { in _zip_ef_write()
335 _zip_buffer_set_offset(buffer, 0); in _zip_ef_write()
336 _zip_buffer_put_16(buffer, ef->id); in _zip_ef_write()
337 _zip_buffer_put_16(buffer, ef->size); in _zip_ef_write()
338 if (!_zip_buffer_ok(buffer)) { in _zip_ef_write()
340 _zip_buffer_free(buffer); in _zip_ef_write()
344 _zip_buffer_free(buffer); in _zip_ef_write()
349 _zip_buffer_free(buffer); in _zip_ef_write()
356 _zip_buffer_free(buffer); in _zip_ef_write()
366 zip_buffer_t *buffer; in _zip_read_local_ef() local
389 if ((buffer = _zip_buffer_new_from_source(za->src, sizeof(b), b, &za->error)) == NULL) { in _zip_read_local_ef()
393 fname_len = _zip_buffer_get_16(buffer); in _zip_read_local_ef()
394 ef_len = _zip_buffer_get_16(buffer); in _zip_read_local_ef()
396 if (!_zip_buffer_eof(buffer)) { in _zip_read_local_ef()
397 _zip_buffer_free(buffer); in _zip_read_local_ef()
402 _zip_buffer_free(buffer); in _zip_read_local_ef()