Lines Matching refs:size

48 size_t size = 0;  variable
52 rc = Curl_base64_encode(data, "i", 1, &output, &size);
54 fail_unless(size == 4, "size should be 4");
58 rc = Curl_base64_encode(data, "ii", 2, &output, &size);
60 fail_unless(size == 4, "size should be 4");
64 rc = Curl_base64_encode(data, "iii", 3, &output, &size);
66 fail_unless(size == 4, "size should be 4");
70 rc = Curl_base64_encode(data, "iiii", 4, &output, &size);
72 fail_unless(size == 8, "size should be 8");
76 rc = Curl_base64_encode(data, "\xff\x01\xfe\x02", 4, &output, &size);
78 fail_unless(size == 8, "size should be 8");
82 rc = Curl_base64url_encode(data, "\xff\x01\xfe\x02", 4, &output, &size);
84 fail_unless(size == 8, "size should be 8");
88 rc = Curl_base64url_encode(data, "iiii", 4, &output, &size);
90 fail_unless(size == 8, "size should be 8");
95 rc = Curl_base64_encode(data, "iiii", 0, &output, &size);
97 fail_unless(size == 8, "size should be 8");
101 rc = Curl_base64_decode("aWlpaQ==", &decoded, &size);
103 fail_unless(size == 4, "size should be 4");
107 rc = Curl_base64_decode("aWlp", &decoded, &size);
109 fail_unless(size == 3, "size should be 3");
113 rc = Curl_base64_decode("aWk=", &decoded, &size);
115 fail_unless(size == 2, "size should be 2");
119 rc = Curl_base64_decode("aQ==", &decoded, &size);
121 fail_unless(size == 1, "size should be 1");
126 size = 1; /* not zero */
128 rc = Curl_base64_decode("aQ", &decoded, &size);
130 fail_unless(size == 0, "size should be 0");
134 size = 1; /* not zero */
136 rc = Curl_base64_decode("a===", &decoded, &size);
138 fail_unless(size == 0, "size should be 0");
142 size = 1; /* not zero */
144 rc = Curl_base64_decode("a=Q=", &decoded, &size);
146 fail_unless(size == 0, "size should be 0");
150 size = 1; /* not zero */
152 rc = Curl_base64_decode("a\x1f==", &decoded, &size);
154 fail_unless(size == 0, "size should be 0");