chromium/third_party/grpc/src/src/core/ext/transport/chttp2/transport/bin_decoder.cc

//
//
// Copyright 2016 gRPC authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
//

#include <grpc/support/port_platform.h>

#include "src/core/ext/transport/chttp2/transport/bin_decoder.h"

#include "absl/base/attributes.h"

#include <grpc/support/alloc.h>
#include <grpc/support/log.h>

#include "src/core/lib/slice/slice.h"

static uint8_t decode_table[] =;

static const uint8_t tail_xtra[4] =;

static bool input_is_valid(const uint8_t* input_ptr, size_t length) {}

#define COMPOSE_OUTPUT_BYTE_0(input_ptr)

#define COMPOSE_OUTPUT_BYTE_1(input_ptr)

#define COMPOSE_OUTPUT_BYTE_2(input_ptr)

// By RFC 4648, if the length of the encoded string without padding is 4n+r,
// the length of decoded string is: 1) 3n if r = 0, 2) 3n + 1 if r = 2, 3, or
// 3) invalid if r = 1.
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) {}