Lines Matching refs:data
28 char data[64*1024], *d, *endd;
30 /* generate random data */
32 for(endd = (d = data)+sizeof(data); d < endd; )
44 if((k = vcapply(vch, data, sizeof(data), &d)) <= 0)
46 twarn("Vchuffgroup: original size=%d compressed size=%d\n",sizeof(data),k);
47 if((n = vcapply(vcu, d, k, &d)) != sizeof(data))
49 for(k = 0; k < sizeof(data); ++k)
50 if(d[k] != data[k])
51 terror("Bad decompressed data");
57 if((k = vcapply(vch, data, sizeof(data), &d)) <= 0)
59 twarn("Vchuffpart: original size=%d compressed size=%d\n",sizeof(data),k);
60 if((n = vcapply(vcu, d, k, &d)) != sizeof(data))
62 for(k = 0; k < sizeof(data); ++k)
63 if(d[k] != data[k])
64 terror("Bad decompressed data");