Go to the documentation of this file.
25 #include "absl/base/attributes.h"
26 #include "absl/strings/str_format.h"
27 #include "absl/strings/string_view.h"
36 p->debug_data =
nullptr;
52 p->debug_data =
static_cast<char*
>(
gpr_malloc(
p->debug_length));
75 p->last_stream_id = (
static_cast<uint32_t>(*cur)) << 24;
83 p->last_stream_id |= (
static_cast<uint32_t>(*cur)) << 16;
91 p->last_stream_id |= (
static_cast<uint32_t>(*cur)) << 8;
99 p->last_stream_id |= (
static_cast<uint32_t>(*cur));
107 p->error_code = (
static_cast<uint32_t>(*cur)) << 24;
115 p->error_code |= (
static_cast<uint32_t>(*cur)) << 16;
123 p->error_code |= (
static_cast<uint32_t>(*cur)) << 8;
131 p->error_code |= (
static_cast<uint32_t>(*cur));
137 static_cast<size_t>(
end -
cur));
144 t,
p->error_code,
p->last_stream_id,
147 p->debug_data =
nullptr;
178 *
p++ =
static_cast<uint8_t>(last_stream_id >> 24);
179 *
p++ =
static_cast<uint8_t>(last_stream_id >> 16);
180 *
p++ =
static_cast<uint8_t>(last_stream_id >> 8);
181 *
p++ =
static_cast<uint8_t>(last_stream_id);
183 *
p++ =
static_cast<uint8_t>(error_code >> 24);
184 *
p++ =
static_cast<uint8_t>(error_code >> 16);
185 *
p++ =
static_cast<uint8_t>(error_code >> 8);
186 *
p++ =
static_cast<uint8_t>(error_code);
@ GRPC_CHTTP2_GOAWAY_LSI3
void grpc_chttp2_goaway_parser_destroy(grpc_chttp2_goaway_parser *p)
ABSL_MUST_USE_RESULT std::string StrFormat(const FormatSpec< Args... > &format, const Args &... args)
@ GRPC_CHTTP2_GOAWAY_ERR2
@ GRPC_CHTTP2_GOAWAY_LSI2
GPRAPI void gpr_free(void *ptr)
#define GRPC_SLICE_MALLOC(len)
void grpc_chttp2_add_incoming_goaway(grpc_chttp2_transport *t, uint32_t goaway_error, uint32_t last_stream_id, absl::string_view goaway_text)
GPRAPI void * gpr_malloc(size_t size)
static size_t frame_length(size_t payload_length)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
void grpc_chttp2_goaway_append(uint32_t last_stream_id, uint32_t error_code, const grpc_slice &debug_data, grpc_slice_buffer *slice_buffer)
grpc_error_handle grpc_chttp2_goaway_parser_begin_frame(grpc_chttp2_goaway_parser *p, uint32_t length, uint8_t)
@ GRPC_CHTTP2_GOAWAY_ERR3
grpc_error_handle grpc_chttp2_goaway_parser_parse(void *parser, grpc_chttp2_transport *t, grpc_chttp2_stream *, const grpc_slice &slice, int is_last)
struct absl::base_internal::@2940::AllocList::Header header
#define GRPC_SLICE_START_PTR(slice)
#define GRPC_SLICE_END_PTR(slice)
#define GRPC_CHTTP2_FRAME_GOAWAY
@ GRPC_CHTTP2_GOAWAY_LSI0
#define GRPC_ERROR_CREATE_FROM_STATIC_STRING(desc)
#define GRPC_SLICE_LENGTH(slice)
@ GRPC_CHTTP2_GOAWAY_DEBUG
@ GRPC_CHTTP2_GOAWAY_ERR1
@ GRPC_CHTTP2_GOAWAY_LSI1
GPRAPI void grpc_slice_buffer_add(grpc_slice_buffer *sb, grpc_slice slice)
@ GRPC_CHTTP2_GOAWAY_ERR0
#define GRPC_ERROR_CREATE_FROM_CPP_STRING(desc)
void grpc_chttp2_goaway_parser_init(grpc_chttp2_goaway_parser *p)
#define ABSL_FALLTHROUGH_INTENDED
grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:25