Lines Matching refs:complen

40 my_bool my_compress(uchar *packet, size_t *len, size_t *complen)  in my_compress()  argument
45 *complen=0; in my_compress()
50 uchar *compbuf=my_compress_alloc(packet,len,complen); in my_compress()
52 DBUG_RETURN(*complen ? 0 : 1); in my_compress()
60 uchar *my_compress_alloc(const uchar *packet, size_t *len, size_t *complen) in my_compress_alloc() argument
65 *complen= *len * 120 / 100 + 12; in my_compress_alloc()
67 if (!(compbuf= (uchar *) my_malloc(*complen, MYF(MY_WME)))) in my_compress_alloc()
70 tmp_complen= (uint) *complen; in my_compress_alloc()
72 *complen= tmp_complen; in my_compress_alloc()
80 if (*complen >= *len) in my_compress_alloc()
82 *complen= 0; in my_compress_alloc()
88 swap_variables(size_t, *len, *complen); in my_compress_alloc()
109 my_bool my_uncompress(uchar *packet, size_t len, size_t *complen) in my_uncompress() argument
114 if (*complen) /* If compressed */ in my_uncompress()
116 uchar *compbuf= (uchar *) my_malloc(*complen,MYF(MY_WME)); in my_uncompress()
121 tmp_complen= (uint) *complen; in my_uncompress()
124 *complen= tmp_complen; in my_uncompress()
131 memcpy(packet, compbuf, *complen); in my_uncompress()
135 *complen= len; in my_uncompress()
232 size_t complen, orglen; in unpackfrm() local
239 complen= uint4korr(pack_data+8); in unpackfrm()
242 ver, (ulong) complen, (ulong) orglen)); in unpackfrm()
243 DBUG_DUMP("blob->data", pack_data + BLOB_HEADER, complen); in unpackfrm()
247 if (!(data= my_malloc(max(orglen, complen), MYF(MY_WME)))) in unpackfrm()
249 memcpy(data, pack_data + BLOB_HEADER, complen); in unpackfrm()
251 if (my_uncompress(data, complen, &orglen)) in unpackfrm()