A sequence of bytes.
More...
#include <byte_buffer.h>
◆ ByteBuffer() [1/3]
grpc::ByteBuffer::ByteBuffer |
( |
| ) |
|
|
inline |
Constuct an empty buffer.
◆ ByteBuffer() [2/3]
grpc::ByteBuffer::ByteBuffer |
( |
const Slice * |
slices, |
|
|
size_t |
nslices |
|
) |
| |
|
inline |
Construct buffer from slices, of which there are nslices.
◆ ByteBuffer() [3/3]
grpc::ByteBuffer::ByteBuffer |
( |
const ByteBuffer & |
buf | ) |
|
|
inline |
Constuct a byte buffer by referencing elements of existing buffer 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.
◆ ~ByteBuffer()
grpc::ByteBuffer::~ByteBuffer |
( |
| ) |
|
|
inline |
◆ Clear()
void grpc::ByteBuffer::Clear |
( |
| ) |
|
|
inline |
◆ Dump()
Status grpc::ByteBuffer::Dump |
( |
std::vector< Slice > * |
slices | ) |
const |
Dump (read) the buffer contents into slices.
◆ Duplicate()
void grpc::ByteBuffer::Duplicate |
( |
| ) |
|
|
inline |
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.
◆ Length()
size_t grpc::ByteBuffer::Length |
( |
| ) |
const |
|
inline |
◆ operator=()
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.
◆ Release()
void grpc::ByteBuffer::Release |
( |
| ) |
|
|
inline |
Forget underlying byte buffer without destroying Use this only for un-owned byte buffers.
◆ Swap()
Swap the state of *this and *other.
◆ Valid()
bool grpc::ByteBuffer::Valid |
( |
| ) |
const |
|
inline |
◆ ::grpc_impl::internal::CallbackServerStreamingHandler
template<class RequestType , class ResponseType >
◆ ::grpc_impl::internal::CallbackUnaryHandler
template<class RequestType , class ResponseType >
◆ ::grpc_impl::internal::ErrorMethodHandler
template<StatusCode code>
◆ ::grpc_impl::internal::RpcMethodHandler
template<class ServiceType , class RequestType , class ResponseType >
◆ ::grpc_impl::internal::ServerStreamingHandler
template<class ServiceType , class RequestType , class ResponseType >
◆ internal::CallOpGenericRecvMessage
◆ internal::CallOpRecvMessage
◆ internal::CallOpSendMessage
◆ internal::DeserializeFuncType
◆ internal::ExternalConnectionAcceptorImpl
friend class internal::ExternalConnectionAcceptorImpl |
|
friend |
◆ internal::GrpcByteBufferPeer
friend class internal::GrpcByteBufferPeer |
|
friend |
◆ ProtoBufferReader
◆ ProtoBufferWriter
◆ SerializationTraits< ByteBuffer, void >
◆ ServerInterface
The documentation for this class was generated from the following file: