Lines Matching refs:complen

51 my_bool my_compress(uchar *packet, size_t *len, size_t *complen)  in my_compress()  argument
56 *complen=0; in my_compress()
61 uchar *compbuf=my_compress_alloc(packet,len,complen); in my_compress()
63 DBUG_RETURN(*complen ? 0 : 1); in my_compress()
71 uchar *my_compress_alloc(const uchar *packet, size_t *len, size_t *complen) in my_compress_alloc() argument
76 *complen= *len * 120 / 100 + 12; in my_compress_alloc()
79 *complen, MYF(MY_WME)))) in my_compress_alloc()
82 tmp_complen= (uint) *complen; in my_compress_alloc()
84 *complen= tmp_complen; in my_compress_alloc()
92 if (*complen >= *len) in my_compress_alloc()
94 *complen= 0; in my_compress_alloc()
100 swap_variables(size_t, *len, *complen); in my_compress_alloc()
121 my_bool my_uncompress(uchar *packet, size_t len, size_t *complen) in my_uncompress() argument
126 if (*complen) /* If compressed */ in my_uncompress()
129 *complen,MYF(MY_WME)); in my_uncompress()
134 tmp_complen= (uint) *complen; in my_uncompress()
137 *complen= tmp_complen; in my_uncompress()
144 memcpy(packet, compbuf, *complen); in my_uncompress()
148 *complen= len; in my_uncompress()
246 size_t complen, orglen; in unpackfrm() local
253 complen= uint4korr(pack_data+8); in unpackfrm()
256 ver, (ulong) complen, (ulong) orglen)); in unpackfrm()
257 DBUG_DUMP("blob->data", pack_data + BLOB_HEADER, complen); in unpackfrm()
262 MY_MAX(orglen, complen), MYF(MY_WME)))) in unpackfrm()
264 memcpy(data, pack_data + BLOB_HEADER, complen); in unpackfrm()
266 if (my_uncompress(data, complen, &orglen)) in unpackfrm()