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 |
Construct 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.
◆ DumpToSingleSlice()
Status grpc::ByteBuffer::DumpToSingleSlice |
( |
Slice * |
slice | ) |
const |
Dump (read) the buffer contents into slics.
◆ 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.
◆ TrySingleSlice()
Status grpc::ByteBuffer::TrySingleSlice |
( |
Slice * |
slice | ) |
const |
◆ Valid()
bool grpc::ByteBuffer::Valid |
( |
| ) |
const |
|
inline |
◆ internal::CallbackServerStreamingHandler
template<class RequestType , class ResponseType >
◆ internal::CallbackUnaryHandler
template<class RequestType , class ResponseType >
◆ internal::CallOpGenericRecvMessage
◆ internal::CallOpRecvMessage
◆ internal::CallOpSendMessage
◆ internal::DeserializeFuncType
◆ internal::ErrorMethodHandler
template<StatusCode code>
◆ internal::ExternalConnectionAcceptorImpl
friend class internal::ExternalConnectionAcceptorImpl |
|
friend |
◆ internal::GrpcByteBufferPeer
friend class internal::GrpcByteBufferPeer |
|
friend |
◆ internal::ServerStreamingHandler
template<class ServiceType , class RequestType , class ResponseType >
◆ internal::UnaryDeserializeHelper
template<class RequestType >
◆ ProtoBufferReader
◆ ProtoBufferWriter
◆ SerializationTraits< ByteBuffer, void >
◆ ServerInterface
The documentation for this class was generated from the following file: