Home | History | Annotate | Download | only in examples

Lines Matching defs:LEN

331                                 off_t offset, unsigned char *buf, size_t len) {
337 if (len == 0 || offset < 0 || offset >= index->length)
371 size_t left = len; // number of bytes left to read after offset
381 strm.next_out = buf + len - left;
453 return ret == Z_OK || ret == Z_STREAM_END ? len - left : ret;
459 #define LEN 16384 // number of bytes to extract
462 // processing the file provided on the command line, and extracting LEN bytes
491 int len = deflate_index_build(in, SPAN, &index);
492 if (len < 0) {
494 switch (len) {
508 fprintf(stderr, "zran: error %d while building index\n", len);
512 fprintf(stderr, "zran: built index with %d access points\n", len);
515 unsigned char buf[LEN];
518 ptrdiff_t got = deflate_index_extract(in, index, offset, buf, LEN);