Lines Matching defs:buf
57 char *buf;
60 buf = malloc(count);
61 assert_se(buf);
64 memzero(buf, count);
67 buf[i] = 'a' + i % ('z' - 'a' + 1);
71 random_bytes(buf, step);
72 memzero(buf + 1*step, step);
73 random_bytes(buf + 2*step, step);
74 memzero(buf + 3*step, step);
75 random_bytes(buf + 4*step, step);
76 memzero(buf + 5*step, step);
77 random_bytes(buf + 6*step, step);
78 memzero(buf + 7*step, step);
79 random_bytes(buf + 8*step, step);
80 memzero(buf + 9*step, step);
84 return buf;
92 _cleanup_free_ char *text, *buf;
98 buf = calloc(MAX_SIZE + 1, 1);
99 assert_se(text && buf);
111 memzero(buf, MIN(size + 1000, MAX_SIZE));
113 r = compress(text, size, buf, size, &j);
118 assert_se(buf[size] == 0);
128 r = decompress(buf, j, &buf2, &buf2_allocated, &k, 0);