Lines Matching refs:newsize
128 size_t newsize; in hast_lzf_compress() local
135 newsize = sizeof(origsize) + origsize - HAST_LZF_COMPRESS_MIN; in hast_lzf_compress()
136 newbuf = malloc(newsize); in hast_lzf_compress()
139 newsize); in hast_lzf_compress()
142 newsize = lzf_compress(data, *sizep, newbuf + sizeof(origsize), in hast_lzf_compress()
143 newsize - sizeof(origsize)); in hast_lzf_compress()
144 if (newsize == 0) { in hast_lzf_compress()
151 *sizep = sizeof(origsize) + newsize; in hast_lzf_compress()
160 size_t newsize; in hast_lzf_decompress() local
174 newsize = lzf_decompress(data + sizeof(origsize), in hast_lzf_decompress()
176 if (newsize == 0) { in hast_lzf_decompress()
181 PJDLOG_ASSERT(newsize == origsize); in hast_lzf_decompress()
183 *sizep = newsize; in hast_lzf_decompress()