Lines Matching refs:oidx
164 UInt32 oidx = 0; in lzf_compress()
195 if (oidx + lit + 1 + 3 >= out_len) in lzf_compress()
204 out_data[oidx++] = (byte)(lit - 1); in lzf_compress()
207 out_data[oidx++] = in_data[iidx+lit]; in lzf_compress()
216 out_data[oidx++] = (byte)((off >> 8) + (len << 5)); in lzf_compress()
220 out_data[oidx++] = (byte)((off >> 8) + ( 7 << 5)); in lzf_compress()
221 out_data[oidx++] = (byte)(len - 7); in lzf_compress()
224 out_data[oidx++] = (byte)off; in lzf_compress()
248 if (oidx + 1 + MAX_LIT >= out_len) in lzf_compress()
251 out_data[oidx++] = (byte)(MAX_LIT - 1); in lzf_compress()
254 out_data[oidx++] = in_data[iidx+lit]; in lzf_compress()
261 if (oidx + lit + 1 >= out_len) in lzf_compress()
264 out_data[oidx++] = (byte)(lit - 1); in lzf_compress()
267 out_data[oidx++] = in_data[iidx+lit]; in lzf_compress()
271 return (int)oidx; in lzf_compress()
280 UInt32 oidx=0; in lzf_decompress()
290 if (oidx + ctrl > out_len) in lzf_decompress()
297 out_data[oidx++] = in_data[iidx++]; in lzf_decompress()
304 int reference = (int)(oidx - ((ctrl & 0x1f) << 8) - 1); in lzf_decompress()
311 if (oidx + len + 2 > out_len) in lzf_decompress()
323 out_data[oidx++]=out_data[reference++]; in lzf_decompress()
324 out_data[oidx++]=out_data[reference++]; in lzf_decompress()
327 out_data[oidx++]=out_data[reference++]; in lzf_decompress()
333 return (int)oidx; in lzf_decompress()