Classes | Functions | Variables
bin_encoder.cc File Reference
#include <grpc/support/port_platform.h>
#include "src/core/ext/transport/chttp2/transport/bin_encoder.h"
#include <stdint.h>
#include <string.h>
#include <grpc/support/log.h>
#include "src/core/ext/transport/chttp2/transport/huffsyms.h"
Include dependency graph for bin_encoder.cc:

Go to the source code of this file.

Classes

struct  b64_huff_sym
 
struct  huff_out
 

Functions

static void enc_add1 (huff_out *out, uint8_t a)
 
static void enc_add2 (huff_out *out, uint8_t a, uint8_t b)
 
static void enc_flush_some (huff_out *out)
 
grpc_slice grpc_chttp2_base64_encode (const grpc_slice &input)
 
grpc_slice grpc_chttp2_base64_encode_and_huffman_compress (const grpc_slice &input)
 
grpc_slice grpc_chttp2_huffman_compress (const grpc_slice &input)
 

Variables

static const char alphabet []
 
static const b64_huff_sym huff_alphabet [64]
 
static const uint8_t tail_xtra [3] = {0, 2, 3}
 

Function Documentation

◆ enc_add1()

static void enc_add1 ( huff_out out,
uint8_t  a 
)
static

Definition at line 162 of file bin_encoder.cc.

◆ enc_add2()

static void enc_add2 ( huff_out out,
uint8_t  a,
uint8_t  b 
)
static

Definition at line 152 of file bin_encoder.cc.

◆ enc_flush_some()

static void enc_flush_some ( huff_out out)
static

Definition at line 145 of file bin_encoder.cc.

◆ grpc_chttp2_base64_encode()

grpc_slice grpc_chttp2_base64_encode ( const grpc_slice input)

Definition at line 52 of file bin_encoder.cc.

◆ grpc_chttp2_base64_encode_and_huffman_compress()

grpc_slice grpc_chttp2_base64_encode_and_huffman_compress ( const grpc_slice input)

Definition at line 169 of file bin_encoder.cc.

◆ grpc_chttp2_huffman_compress()

grpc_slice grpc_chttp2_huffman_compress ( const grpc_slice input)

Definition at line 96 of file bin_encoder.cc.

Variable Documentation

◆ alphabet

const char alphabet[]
static
Initial value:
=
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"

Definition at line 30 of file bin_encoder.cc.

◆ huff_alphabet

const b64_huff_sym huff_alphabet[64]
static
Initial value:
= {
{0x21, 6}, {0x5d, 7}, {0x5e, 7}, {0x5f, 7}, {0x60, 7}, {0x61, 7},
{0x62, 7}, {0x63, 7}, {0x64, 7}, {0x65, 7}, {0x66, 7}, {0x67, 7},
{0x68, 7}, {0x69, 7}, {0x6a, 7}, {0x6b, 7}, {0x6c, 7}, {0x6d, 7},
{0x6e, 7}, {0x6f, 7}, {0x70, 7}, {0x71, 7}, {0x72, 7}, {0xfc, 8},
{0x73, 7}, {0xfd, 8}, {0x3, 5}, {0x23, 6}, {0x4, 5}, {0x24, 6},
{0x5, 5}, {0x25, 6}, {0x26, 6}, {0x27, 6}, {0x6, 5}, {0x74, 7},
{0x75, 7}, {0x28, 6}, {0x29, 6}, {0x2a, 6}, {0x7, 5}, {0x2b, 6},
{0x76, 7}, {0x2c, 6}, {0x8, 5}, {0x9, 5}, {0x2d, 6}, {0x77, 7},
{0x78, 7}, {0x79, 7}, {0x7a, 7}, {0x7b, 7}, {0x0, 5}, {0x1, 5},
{0x2, 5}, {0x19, 6}, {0x1a, 6}, {0x1b, 6}, {0x1c, 6}, {0x1d, 6},
{0x1e, 6}, {0x1f, 6}, {0x7fb, 11}, {0x18, 6}}

Definition at line 37 of file bin_encoder.cc.

◆ tail_xtra

const uint8_t tail_xtra[3] = {0, 2, 3}
static

Definition at line 50 of file bin_encoder.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:04