34 #ifndef GRPCXX_SUPPORT_BYTE_BUFFER_H 35 #define GRPCXX_SUPPORT_BYTE_BUFFER_H 43 #include <grpc/support/log.h> 96 int max_message_size) {
97 dest->set_buffer(byte_buffer);
110 #endif // GRPCXX_SUPPORT_BYTE_BUFFER_H void Clear()
Remove all data.
A wrapper around gpr_slice.
Definition: slice.h:47
GRPCAPI grpc_byte_buffer * grpc_byte_buffer_copy(grpc_byte_buffer *bb)
Copies input byte buffer bb.
Definition: byte_buffer.h:49
static Status Deserialize(grpc_byte_buffer *byte_buffer, ByteBuffer *dest, int max_message_size)
Definition: byte_buffer.h:95
Defines how to serialize and deserialize some type.
Definition: serialization_traits.h:64
size_t Length() const
Buffer size in bytes.
Status Dump(std::vector< Slice > *slices) const
Dump (read) the buffer contents into slices.
ByteBuffer & operator=(const ByteBuffer &)
#define GRPC_FINAL
Definition: config.h:72
Did it work? If it didn't, why?
Definition: status.h:45
static Status Serialize(const ByteBuffer &source, grpc_byte_buffer **buffer, bool *own_buffer)
Definition: byte_buffer.h:100
static const Status & OK
An OK pre-defined instance.
Definition: status.h:57
ByteBuffer()
Constuct an empty buffer.
Definition: byte_buffer.h:53
A sequence of bytes.
Definition: byte_buffer.h:50