GRPC Core  9.0.0
Macros | Functions
bin_decoder.cc File Reference
#include <grpc/support/port_platform.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include "src/core/ext/transport/chttp2/transport/bin_decoder.h"
#include "src/core/lib/gpr/string.h"
#include "src/core/lib/slice/slice_internal.h"
#include "src/core/lib/slice/slice_string_helpers.h"

Macros

#define COMPOSE_OUTPUT_BYTE_0(input_ptr)
 
#define COMPOSE_OUTPUT_BYTE_1(input_ptr)
 
#define COMPOSE_OUTPUT_BYTE_2(input_ptr)    (uint8_t)((decode_table[input_ptr[2]] << 6) | decode_table[input_ptr[3]])
 

Functions

size_t grpc_chttp2_base64_infer_length_after_decode (const grpc_slice &slice)
 
bool grpc_base64_decode_partial (struct grpc_base64_decode_context *ctx)
 
grpc_slice grpc_chttp2_base64_decode (const grpc_slice &input)
 
grpc_slice grpc_chttp2_base64_decode_with_length (const grpc_slice &input, size_t output_length)
 

Macro Definition Documentation

◆ COMPOSE_OUTPUT_BYTE_0

#define COMPOSE_OUTPUT_BYTE_0 (   input_ptr)
Value:
(uint8_t)((decode_table[input_ptr[0]] << 2) | \
(decode_table[input_ptr[1]] >> 4))

◆ COMPOSE_OUTPUT_BYTE_1

#define COMPOSE_OUTPUT_BYTE_1 (   input_ptr)
Value:
(uint8_t)((decode_table[input_ptr[1]] << 4) | \
(decode_table[input_ptr[2]] >> 2))

◆ COMPOSE_OUTPUT_BYTE_2

#define COMPOSE_OUTPUT_BYTE_2 (   input_ptr)     (uint8_t)((decode_table[input_ptr[2]] << 6) | decode_table[input_ptr[3]])

Function Documentation

◆ grpc_base64_decode_partial()

bool grpc_base64_decode_partial ( struct grpc_base64_decode_context ctx)

◆ grpc_chttp2_base64_decode()

grpc_slice grpc_chttp2_base64_decode ( const grpc_slice input)

◆ grpc_chttp2_base64_decode_with_length()

grpc_slice grpc_chttp2_base64_decode_with_length ( const grpc_slice input,
size_t  output_length 
)

◆ grpc_chttp2_base64_infer_length_after_decode()

size_t grpc_chttp2_base64_infer_length_after_decode ( const grpc_slice slice)