|
GRPC C++
1.3.0
|
A sequence of bytes. More...
#include <byte_buffer.h>
Public Member Functions | |
| ByteBuffer () | |
| Constuct an empty buffer. More... | |
| ByteBuffer (const Slice *slices, size_t nslices) | |
| Construct buffer from slices, of which there are nslices. More... | |
| ByteBuffer (const ByteBuffer &buf) | |
| Constuct a byte buffer by referencing elements of existing buffer buf. More... | |
| ~ByteBuffer () | |
| ByteBuffer & | operator= (const ByteBuffer &) |
| Status | Dump (std::vector< Slice > *slices) const |
| Dump (read) the buffer contents into slices. More... | |
| void | Clear () |
| Remove all data. More... | |
| size_t | Length () const |
| Buffer size in bytes. More... | |
| void | Swap (ByteBuffer *other) |
| Swap the state of *this and *other. More... | |
Friends | |
| class | SerializationTraits< ByteBuffer, void > |
A sequence of bytes.
|
inline |
Constuct an empty buffer.
| grpc::ByteBuffer::ByteBuffer | ( | const Slice * | slices, |
| size_t | nslices | ||
| ) |
Construct buffer from slices, of which there are nslices.
| grpc::ByteBuffer::ByteBuffer | ( | const ByteBuffer & | buf | ) |
Constuct a byte buffer by referencing elements of existing buffer buf.
Wrapper of core function grpc_byte_buffer_copy
| grpc::ByteBuffer::~ByteBuffer | ( | ) |
| void grpc::ByteBuffer::Clear | ( | ) |
Remove all data.
Dump (read) the buffer contents into slices.
| size_t grpc::ByteBuffer::Length | ( | ) | const |
Buffer size in bytes.
| ByteBuffer& grpc::ByteBuffer::operator= | ( | const ByteBuffer & | ) |
| void grpc::ByteBuffer::Swap | ( | ByteBuffer * | other | ) |
Swap the state of *this and *other.
|
friend |
1.8.6