class ByteBuffer
Defined at line 60 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/byte_buffer.h
A sequence of bytes.
Public Methods
void ByteBuffer ()
Constuct an empty buffer.
Defined at line 63 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/byte_buffer.h
void ByteBuffer (const Slice * slices, size_t nslices)
Construct buffer from
of which there are
Defined at line 66 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/byte_buffer.h
void ByteBuffer (const ByteBuffer & buf)
Construct a byte buffer by referencing elements of existing buffer
Wrapper of core function grpc_byte_buffer_copy . This is not
a deep copy; it is just a referencing. As a result, its performance is
size-independent.
Defined at line 95 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/byte_buffer.h
Status TrySingleSlice (Slice * slice)
If this ByteBuffer's representation is a single flat slice, returns a
slice referencing that array.
Status DumpToSingleSlice (Slice * slice)
Dump (read) the buffer contents into
Status Dump (std::vector<Slice> * slices)
Dump (read) the buffer contents into
void ~ByteBuffer ()
Defined at line 97 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/byte_buffer.h
ByteBuffer & operator= (const ByteBuffer & buf)
Wrapper of core function grpc_byte_buffer_copy . This is not
a deep copy; it is just a referencing. As a result, its performance is
size-independent.
Defined at line 106 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/byte_buffer.h
void Clear ()
Remove all data.
Defined at line 128 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/byte_buffer.h
void Duplicate ()
Make a duplicate copy of the internals of this byte
buffer so that we have our own owned version of it.
bbuf.Duplicate(); is equivalent to bbuf=bbuf; but is actually readable.
This is not a deep copy; it is a referencing and its performance
is size-independent.
Defined at line 140 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/byte_buffer.h
void Release ()
Forget underlying byte buffer without destroying
Use this only for un-owned byte buffers
Defined at line 144 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/byte_buffer.h
size_t Length ()
Buffer size in bytes.
Defined at line 147 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/byte_buffer.h
void Swap (ByteBuffer * other)
Swap the state of *this and *other.
Defined at line 152 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/byte_buffer.h
bool Valid ()
Is this ByteBuffer valid?
Defined at line 159 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/byte_buffer.h
Friends
class ExternalConnectionAcceptorImpl
class GrpcByteBufferPeer
class ProtoBufferWriter
class ProtoBufferReader
template <class R>
class DeserializeFuncType
template <StatusCode code>
class ErrorMethodHandler
template <class RequestType, class ResponseType>
class CallbackServerStreamingHandler
template <class RequestType, class ResponseType>
class CallbackUnaryHandler
template <class ServiceType, class RequestType, class ResponseType>
class ServerStreamingHandler
template <class RequestType>
void * ByteBuffer (grpc_byte_buffer * , grpc::Status * , RequestType * )
class CallOpGenericRecvMessage
template <class R>
class CallOpRecvMessage
class CallOpSendMessage
class ServerInterface
class SerializationTraits