Lines Matching refs:size
56 size_t size = 0; variable
60 rc = Curl_base64_encode("i", 1, &output, &size);
62 fail_unless(size == 4, "size should be 4");
66 rc = Curl_base64_encode("ii", 2, &output, &size);
68 fail_unless(size == 4, "size should be 4");
72 rc = Curl_base64_encode("iii", 3, &output, &size);
74 fail_unless(size == 4, "size should be 4");
78 rc = Curl_base64_encode("iiii", 4, &output, &size);
80 fail_unless(size == 8, "size should be 8");
84 rc = Curl_base64_encode("\xff\x01\xfe\x02", 4, &output, &size);
86 fail_unless(size == 8, "size should be 8");
90 rc = Curl_base64url_encode("\xff\x01\xfe\x02", 4, &output, &size);
92 fail_unless(size == 6, "size should be 6");
96 rc = Curl_base64url_encode("iiii", 4, &output, &size);
98 fail_unless(size == 6, "size should be 6");
103 rc = Curl_base64_encode("iiii", 0, &output, &size);
105 fail_unless(size == 8, "size should be 8");
109 rc = Curl_base64_encode("", 0, &output, &size);
111 fail_unless(size == 0, "size should be 0");
115 rc = Curl_base64url_encode("", 0, &output, &size);
117 fail_unless(size == 0, "size should be 0");
121 rc = Curl_base64_decode("aWlpaQ==", &decoded, &size);
123 fail_unless(size == 4, "size should be 4");
127 rc = Curl_base64_decode("aWlp", &decoded, &size);
129 fail_unless(size == 3, "size should be 3");
133 rc = Curl_base64_decode("aWk=", &decoded, &size);
135 fail_unless(size == 2, "size should be 2");
139 rc = Curl_base64_decode("aQ==", &decoded, &size);
141 fail_unless(size == 1, "size should be 1");
146 size = 1; /* not zero */
148 rc = Curl_base64_decode("aQ", &decoded, &size);
151 fail_unless(size == 0, "size should be 0");
155 size = 1; /* not zero */
157 rc = Curl_base64_decode("a===", &decoded, &size);
160 fail_unless(size == 0, "size should be 0");
164 size = 1; /* not zero */
166 rc = Curl_base64_decode("a=Q=", &decoded, &size);
169 fail_unless(size == 0, "size should be 0");
173 size = 1; /* not zero */
175 rc = Curl_base64_decode("aWlpa=Q=", &decoded, &size);
178 fail_unless(size == 0, "size should be 0");
182 size = 1; /* not zero */
184 rc = Curl_base64_decode("a\x1f==", &decoded, &size);
187 fail_unless(size == 0, "size should be 0");