Go to the documentation of this file.
19 #ifndef GRPCPP_IMPL_CODEGEN_BYTE_BUFFER_H
20 #define GRPCPP_IMPL_CODEGEN_BYTE_BUFFER_H
35 class ServerInterface;
37 class ServerInterface;
40 template <
class RequestType,
class ResponseType>
42 template <
class RequestType,
class ResponseType>
44 template <
class RequestType>
46 template <
class ServiceType,
class RequestType,
class ResponseType>
48 template <grpc::StatusCode code>
72 "Slice must have same representation as grpc_slice");
74 "Slice must have same representation as grpc_slice");
79 "ByteBuffer must have same representation as "
82 "ByteBuffer must have same representation as "
173 template <
class RequestType>
176 template <
class ServiceType,
class RequestType,
class ResponseType>
178 template <
class RequestType,
class ResponseType>
180 template <
class RequestType,
class ResponseType>
182 template <StatusCode code>
239 #endif // GRPCPP_IMPL_CODEGEN_BYTE_BUFFER_H
grpc_byte_buffer * buffer_
grpc_byte_buffer * c_buffer()
void Swap(ByteBuffer *other)
Swap the state of *this and *other.
Status TrySingleSlice(Slice *slice) const
grpc_byte_buffer ** c_buffer_ptr()
static Status Deserialize(ByteBuffer *byte_buffer, ByteBuffer *dest)
static Status Serialize(const ByteBuffer &source, ByteBuffer *buffer, bool *own_buffer)
virtual const Status & ok()=0
bool Valid() const
Is this ByteBuffer valid?
CoreCodegenInterface * g_core_codegen_interface
virtual grpc_byte_buffer * grpc_raw_byte_buffer_create(grpc_slice *slice, size_t nslices)=0
void * UnaryDeserializeHelper(grpc_byte_buffer *, grpc::Status *, RequestType *)
A helper function with reduced templating to do deserializing.
ByteBuffer()
Constuct an empty buffer.
virtual size_t grpc_byte_buffer_length(grpc_byte_buffer *bb) GRPC_MUST_USE_RESULT=0
ByteBufferPointer(const ByteBuffer *b)
ByteBuffer(const Slice *slices, size_t nslices)
Construct buffer from slices, of which there are nslices.
static const Status & OK
An OK pre-defined instance.
Status Dump(std::vector< Slice > *slices) const
Dump (read) the buffer contents into slices.
void Clear()
Remove all data.
Status DumpToSingleSlice(Slice *slice) const
Dump (read) the buffer contents into slics.
virtual void grpc_byte_buffer_destroy(grpc_byte_buffer *bb)=0
size_t Length() const
Buffer size in bytes.
virtual grpc_byte_buffer * grpc_byte_buffer_copy(grpc_byte_buffer *bb)=0
ByteBuffer(const ByteBuffer &buf)
void set_buffer(grpc_byte_buffer *buf)
A wrapper class of an application provided server streaming handler.
ByteBufferPointer bbuf_ptr() const
ByteBuffer & operator=(const ByteBuffer &buf)
grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:58:41