Lines Matching refs:complen

52 my_bool my_compress(uchar *packet, size_t *len, size_t *complen)  in my_compress()  argument
57 *complen=0; in my_compress()
62 uchar *compbuf=my_compress_alloc(packet,len,complen); in my_compress()
64 DBUG_RETURN(*complen ? 0 : 1); in my_compress()
72 uchar *my_compress_alloc(const uchar *packet, size_t *len, size_t *complen) in my_compress_alloc() argument
77 *complen= *len * 120 / 100 + 12; in my_compress_alloc()
79 if (!(compbuf= (uchar *) my_malloc(*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()
128 uchar *compbuf= (uchar *) my_malloc(*complen,MYF(MY_WME)); in my_uncompress()
133 tmp_complen= (uint) *complen; in my_uncompress()
136 *complen= tmp_complen; in my_uncompress()
143 memcpy(packet, compbuf, *complen); in my_uncompress()
147 *complen= len; in my_uncompress()
244 size_t complen, orglen; in unpackfrm() local
251 complen= uint4korr(pack_data+8); in unpackfrm()
254 ver, (ulong) complen, (ulong) orglen)); in unpackfrm()
255 DBUG_DUMP("blob->data", pack_data + BLOB_HEADER, complen); in unpackfrm()
259 if (!(data= my_malloc(MY_MAX(orglen, complen), MYF(MY_WME)))) in unpackfrm()
261 memcpy(data, pack_data + BLOB_HEADER, complen); in unpackfrm()
263 if (my_uncompress(data, complen, &orglen)) in unpackfrm()