Home
last modified time | relevance | path

Searched refs:url_safe (Results 1 – 5 of 5) sorted by relevance

/external/grpc-grpc/test/core/slice/
Db64_test.cc44 static void test_simple_encode_decode_b64(int url_safe, int multiline) { in test_simple_encode_decode_b64() argument
47 grpc_base64_encode(hello, strlen(hello), url_safe, multiline); in test_simple_encode_decode_b64()
49 grpc_slice hello_slice = grpc_base64_decode(hello_b64, url_safe); in test_simple_encode_decode_b64()
59 static void test_full_range_encode_decode_b64(int url_safe, int multiline) { in test_full_range_encode_decode_b64() argument
69 b64 = grpc_base64_encode(orig, sizeof(orig) - i, url_safe, multiline); in test_full_range_encode_decode_b64()
70 orig_decoded = grpc_base64_decode(b64, url_safe); in test_full_range_encode_decode_b64()
116 int url_safe = 1; in test_url_safe_unsafe_mismatch_failure() local
120 b64 = grpc_base64_encode(orig, sizeof(orig), url_safe, 0); in test_url_safe_unsafe_mismatch_failure()
121 orig_decoded = grpc_base64_decode(b64, !url_safe); in test_url_safe_unsafe_mismatch_failure()
126 b64 = grpc_base64_encode(orig, sizeof(orig), !url_safe, 0); in test_url_safe_unsafe_mismatch_failure()
[all …]
/external/grpc-grpc/src/core/lib/slice/
Db64.cc59 char* grpc_base64_encode(const void* vdata, size_t data_size, int url_safe, in grpc_base64_encode() argument
62 grpc_base64_estimate_encoded_size(data_size, url_safe, multiline); in grpc_base64_encode()
64 grpc_base64_encode_core(result, vdata, data_size, url_safe, multiline); in grpc_base64_encode()
68 size_t grpc_base64_estimate_encoded_size(size_t data_size, int url_safe, in grpc_base64_estimate_encoded_size() argument
79 int url_safe, int multiline) { in grpc_base64_encode_core() argument
82 url_safe ? base64_url_safe_chars : base64_url_unsafe_chars; in grpc_base64_encode_core()
84 grpc_base64_estimate_encoded_size(data_size, url_safe, multiline); in grpc_base64_encode_core()
127 grpc_slice grpc_base64_decode(const char* b64, int url_safe) { in grpc_base64_decode() argument
128 return grpc_base64_decode_with_len(b64, strlen(b64), url_safe); in grpc_base64_decode()
193 int url_safe) { in grpc_base64_decode_with_len() argument
[all …]
Db64.h29 char* grpc_base64_encode(const void* data, size_t data_size, int url_safe,
34 size_t grpc_base64_estimate_encoded_size(size_t data_size, int url_safe,
41 int url_safe, int multiline);
45 grpc_slice grpc_base64_decode(const char* b64, int url_safe);
49 int url_safe);
/external/rust/crates/grpcio-sys/grpc/src/core/lib/slice/
Db64.h29 char* grpc_base64_encode(const void* data, size_t data_size, int url_safe,
40 int url_safe, int multiline);
44 grpc_slice grpc_base64_decode(const char* b64, int url_safe);
48 int url_safe);
Db64.cc59 char* grpc_base64_encode(const void* vdata, size_t data_size, int url_safe, in grpc_base64_encode() argument
64 grpc_base64_encode_core(result, vdata, data_size, url_safe, multiline); in grpc_base64_encode()
78 int url_safe, int multiline) { in grpc_base64_encode_core() argument
81 url_safe ? base64_url_safe_chars : base64_url_unsafe_chars; in grpc_base64_encode_core()
126 grpc_slice grpc_base64_decode(const char* b64, int url_safe) { in grpc_base64_decode() argument
127 return grpc_base64_decode_with_len(b64, strlen(b64), url_safe); in grpc_base64_decode()
192 int url_safe) { in grpc_base64_decode_with_len() argument
203 if (url_safe) { in grpc_base64_decode_with_len()