Go to the documentation of this file.
19 #ifndef GRPCPP_IMPL_CODEGEN_PROTO_BUFFER_READER_H
20 #define GRPCPP_IMPL_CODEGEN_PROTO_BUFFER_READER_H
24 #include <type_traits>
60 "Couldn't initialize byte buffer reader");
151 #endif // GRPCPP_IMPL_CODEGEN_PROTO_BUFFER_READER_H
bool ok() const
Is the status OK?
GRPC_CUSTOM_ZEROCOPYINPUTSTREAM ZeroCopyInputStream
void set_byte_count(int64_t byte_count)
int64_t backup_count_
how far backed up in the stream we are
bool Skip(int count) override
Status status_
status of the entire object
CoreCodegenInterface * g_core_codegen_interface
grpc_slice * slice_
current slice passed back to the caller
virtual int grpc_byte_buffer_reader_peek(grpc_byte_buffer_reader *reader, grpc_slice **slice)=0
grpc_byte_buffer_reader reader_
#define GRPC_SLICE_START_PTR(slice)
Status status() const
Returns the status of the buffer reader.
grpc_byte_buffer_reader * reader()
grpc_slice ** mutable_slice_ptr()
#define GRPC_SLICE_LENGTH(slice)
void BackUp(int count) override
void set_backup_count(int64_t backup_count)
bool Next(const void **data, int *size) override
GRPC_CUSTOM_UTIL_STATUS Status
~ProtoBufferReader() override
#define GPR_CODEGEN_ASSERT(x)
Codegen specific version of GPR_ASSERT.
virtual int grpc_byte_buffer_reader_init(grpc_byte_buffer_reader *reader, grpc_byte_buffer *buffer) GRPC_MUST_USE_RESULT=0
int64_t ByteCount() const override
Returns the total number of bytes read since this object was created.
ProtoBufferReader(ByteBuffer *buffer)
virtual void grpc_byte_buffer_reader_destroy(grpc_byte_buffer_reader *reader)=0
int64_t byte_count_
total bytes read since object creation
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:00:56