Lines Matching refs:mf
92 uint32_t (*find)(lzma_mf *mf, lzma_match *matches);
97 void (*skip)(lzma_mf *mf, uint32_t num);
198 lzma_mf *restrict mf, uint8_t *restrict out,
221 mf_ptr(const lzma_mf *mf)
223 return mf->buffer + mf->read_pos;
229 mf_avail(const lzma_mf *mf)
231 return mf->write_pos - mf->read_pos;
238 mf_unencoded(const lzma_mf *mf)
240 return mf->write_pos - mf->read_pos + mf->read_ahead;
252 mf_position(const lzma_mf *mf)
254 return mf->read_pos - mf->read_ahead;
265 /// have to be skipped with mf_skip(mf, 199).
267 mf_skip(lzma_mf *mf, uint32_t amount)
270 mf->skip(mf, amount);
271 mf->read_ahead += amount;
279 mf_read(lzma_mf *mf, uint8_t *out, size_t *out_pos, size_t out_size,
285 assert(mf->read_ahead == 0);
286 assert(mf->read_pos >= *left);
288 memcpy(out + *out_pos, mf->buffer + mf->read_pos - *left,
310 lzma_mf *mf, uint32_t *count, lzma_match *matches);