Go to the documentation of this file.
66 size_t output_length) {
80 #define EXPECT_DECODED_LENGTH(s, expected) \
81 GPR_ASSERT((expected) == base64_infer_length((s)));
83 #define EXPECT_SLICE_EQ(expected, slice) \
85 grpc_slice_from_copied_buffer(expected, sizeof(expected) - 1), slice, \
88 #define ENCODE_AND_DECODE(s) \
90 s, grpc_chttp2_base64_decode_with_length(base64_encode(s), strlen(s)));
92 int main(
int argc,
char** argv) {
size_t grpc_chttp2_base64_infer_length_after_decode(const grpc_slice &slice)
char * grpc_dump_slice(const grpc_slice &s, uint32_t flags)
GPRAPI grpc_slice grpc_slice_from_copied_string(const char *source)
GPRAPI void gpr_free(void *ptr)
static grpc_slice base64_decode(const char *s)
GPRAPI void gpr_log(const char *file, int line, gpr_log_severity severity, const char *format,...) GPR_PRINT_FORMAT_CHECK(4
static grpc_slice base64_decode_with_length(const char *s, size_t output_length)
int main(int argc, char **argv)
static size_t base64_infer_length(const char *s)
grpc_slice grpc_chttp2_base64_decode(const grpc_slice &input)
static grpc_slice base64_encode(const char *s)
grpc_slice grpc_chttp2_base64_encode(const grpc_slice &input)
#define ENCODE_AND_DECODE(s)
grpc_core::ExecCtx exec_ctx
static void expect_slice_eq(grpc_slice expected, grpc_slice slice, const char *debug, int line)
grpc_slice grpc_chttp2_base64_decode_with_length(const grpc_slice &input, size_t output_length)
#define EXPECT_DECODED_LENGTH(s, expected)
#define EXPECT_SLICE_EQ(expected, slice)
GRPCAPI void grpc_init(void)
GPRAPI int grpc_slice_eq(grpc_slice a, grpc_slice b)
GRPCAPI void grpc_shutdown(void)
void grpc_slice_unref_internal(const grpc_slice &slice)
grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:58:37