Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
grpc_core::HPackParser::Input Class Reference

Classes

struct  StringPrefix
 

Public Member Functions

void Advance (size_t n)
 
const uint8_tcur_ptr () const
 
bool end_of_stream () const
 
const uint8_tend_ptr () const
 
bool eof_error () const
 
const uint8_tfrontier () const
 
 Input (grpc_slice_refcount *current_slice_refcount, const uint8_t *begin, const uint8_t *end)
 
template<typename F , typename T >
GPR_ATTRIBUTE_NOINLINE T MaybeSetErrorAndReturn (F error_factory, T return_value)
 
absl::optional< uint8_tNext ()
 
absl::optional< StringPrefixParseStringPrefix ()
 
absl::optional< uint32_tParseVarint (uint32_t value)
 
absl::optional< uint8_tpeek () const
 
size_t remaining () const
 
GPR_ATTRIBUTE_NOINLINE void SetError (grpc_error_handle error)
 
grpc_slice_refcountslice_refcount ()
 
grpc_error_handle TakeError ()
 
template<typename T >
T UnexpectedEOF (T return_value)
 
void UpdateFrontier ()
 

Private Member Functions

absl::optional< uint32_tParseVarintOutOfRange (uint32_t value, uint8_t last_byte)
 

Private Attributes

const uint8_tbegin_
 
grpc_slice_refcountcurrent_slice_refcount_
 
const uint8_t *const end_
 
bool eof_error_ = false
 
grpc_error_handle error_ = GRPC_ERROR_NONE
 
const uint8_tfrontier_
 

Detailed Description

Definition at line 474 of file hpack_parser.cc.

Constructor & Destructor Documentation

◆ Input()

grpc_core::HPackParser::Input::Input ( grpc_slice_refcount current_slice_refcount,
const uint8_t begin,
const uint8_t end 
)
inline

Definition at line 476 of file hpack_parser.cc.

Member Function Documentation

◆ Advance()

void grpc_core::HPackParser::Input::Advance ( size_t  n)
inline

Definition at line 496 of file hpack_parser.cc.

◆ cur_ptr()

const uint8_t* grpc_core::HPackParser::Input::cur_ptr ( ) const
inline

Definition at line 492 of file hpack_parser.cc.

◆ end_of_stream()

bool grpc_core::HPackParser::Input::end_of_stream ( ) const
inline

Definition at line 488 of file hpack_parser.cc.

◆ end_ptr()

const uint8_t* grpc_core::HPackParser::Input::end_ptr ( ) const
inline

Definition at line 494 of file hpack_parser.cc.

◆ eof_error()

bool grpc_core::HPackParser::Input::eof_error ( ) const
inline

Definition at line 592 of file hpack_parser.cc.

◆ frontier()

const uint8_t* grpc_core::HPackParser::Input::frontier ( ) const
inline

Definition at line 636 of file hpack_parser.cc.

◆ MaybeSetErrorAndReturn()

template<typename F , typename T >
GPR_ATTRIBUTE_NOINLINE T grpc_core::HPackParser::Input::MaybeSetErrorAndReturn ( error_factory,
T  return_value 
)
inline

Definition at line 615 of file hpack_parser.cc.

◆ Next()

absl::optional<uint8_t> grpc_core::HPackParser::Input::Next ( )
inline

Definition at line 509 of file hpack_parser.cc.

◆ ParseStringPrefix()

absl::optional<StringPrefix> grpc_core::HPackParser::Input::ParseStringPrefix ( )
inline

Definition at line 575 of file hpack_parser.cc.

◆ ParseVarint()

absl::optional<uint32_t> grpc_core::HPackParser::Input::ParseVarint ( uint32_t  value)
inline

Definition at line 518 of file hpack_parser.cc.

◆ ParseVarintOutOfRange()

absl::optional<uint32_t> grpc_core::HPackParser::Input::ParseVarintOutOfRange ( uint32_t  value,
uint8_t  last_byte 
)
inlineprivate

Definition at line 640 of file hpack_parser.cc.

◆ peek()

absl::optional<uint8_t> grpc_core::HPackParser::Input::peek ( ) const
inline

Definition at line 500 of file hpack_parser.cc.

◆ remaining()

size_t grpc_core::HPackParser::Input::remaining ( ) const
inline

Definition at line 490 of file hpack_parser.cc.

◆ SetError()

GPR_ATTRIBUTE_NOINLINE void grpc_core::HPackParser::Input::SetError ( grpc_error_handle  error)
inline

Definition at line 603 of file hpack_parser.cc.

◆ slice_refcount()

grpc_slice_refcount* grpc_core::HPackParser::Input::slice_refcount ( )
inline

Definition at line 485 of file hpack_parser.cc.

◆ TakeError()

grpc_error_handle grpc_core::HPackParser::Input::TakeError ( )
inline

Definition at line 595 of file hpack_parser.cc.

◆ UnexpectedEOF()

template<typename T >
T grpc_core::HPackParser::Input::UnexpectedEOF ( T  return_value)
inline

Definition at line 626 of file hpack_parser.cc.

◆ UpdateFrontier()

void grpc_core::HPackParser::Input::UpdateFrontier ( )
inline

Definition at line 633 of file hpack_parser.cc.

Member Data Documentation

◆ begin_

const uint8_t* grpc_core::HPackParser::Input::begin_
private

Definition at line 655 of file hpack_parser.cc.

◆ current_slice_refcount_

grpc_slice_refcount* grpc_core::HPackParser::Input::current_slice_refcount_
private

Definition at line 653 of file hpack_parser.cc.

◆ end_

const uint8_t* const grpc_core::HPackParser::Input::end_
private

Definition at line 657 of file hpack_parser.cc.

◆ eof_error_

bool grpc_core::HPackParser::Input::eof_error_ = false
private

Definition at line 663 of file hpack_parser.cc.

◆ error_

grpc_error_handle grpc_core::HPackParser::Input::error_ = GRPC_ERROR_NONE
private

Definition at line 661 of file hpack_parser.cc.

◆ frontier_

const uint8_t* grpc_core::HPackParser::Input::frontier_
private

Definition at line 659 of file hpack_parser.cc.


The documentation for this class was generated from the following file:


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