Home | History | Annotate | Download | only in examples

Lines Matching defs:point

14                    Do a binary search over the index for an access point
15 Expose the access point type to enable save and load
27 // An access point can be created at the start of any deflate block, by saving
31 // point in the uncompressed stream. deflate_index_build() decompresses the
34 // new access point. If so, that point is saved in a data structure that grows
38 // the latest access point at or preceding that offset is located in the index.
53 // more memory per access point, and could not be saved to a file due to the
75 // Add an access point to the list. If out of memory, deallocate the existing
107 // Fill in the access point and increment how many we have.
143 off_t last; // last access point uncompressed offset
181 // order generate an access point there. Set data_type to imitate
194 // can add an access point here. Furthermore, we are either at the
195 // very start for the first access point, or there has been span or
196 // more uncompressed bytes since the last access point, so we want
197 // to add an access point here.
340 // Find the access point closest to but not after offset.
342 point_t *point = index->list;
345 if (offset < point[mid].out)
350 point += lo;
353 int ret = fseeko(in, point->in - (point->bits ? 1 : 0), SEEK_SET);
357 if (point->bits && (ch = getc(in)) == EOF)
363 if (point->bits)
364 INFLATEPRIME(&strm, point->bits, ch >> (8 - point->bits));
365 inflateSetDictionary(&strm, point->window, WINSIZE);
370 offset -= point->out; // number of bytes to skip to get to offset