|
GRPC C++
1.0.0
|
A wrapper around gpr_slice. More...
#include <slice.h>
Public Types | |
| enum | AddRef { ADD_REF } |
| enum | StealRef { STEAL_REF } |
Public Member Functions | |
| Slice () | |
| Construct an empty slice. More... | |
| ~Slice () | |
| Slice (gpr_slice slice, AddRef) | |
| Construct a slice from slice, adding a reference. More... | |
| Slice (gpr_slice slice, StealRef) | |
| Construct a slice from slice, stealing a reference. More... | |
| Slice (const Slice &other) | |
| Copy constructor, adds a reference. More... | |
| Slice & | operator= (Slice other) |
| Assignment, reference count is unchanged. More... | |
| size_t | size () const |
| Byte size. More... | |
| const uint8_t * | begin () const |
| Raw pointer to the beginning (first element) of the slice. More... | |
| const uint8_t * | end () const |
| Raw pointer to the end (one byte past the last element) of the slice. More... | |
Friends | |
| class | ByteBuffer |
A wrapper around gpr_slice.
A slice represents a contiguous reference counted array of bytes. It is cheap to take references to a slice, and it is cheap to create a slice pointing to a subset of another slice.
| enum grpc::Slice::AddRef |
| grpc::Slice::Slice | ( | ) |
Construct an empty slice.
| grpc::Slice::~Slice | ( | ) |
Construct a slice from slice, stealing a reference.
| grpc::Slice::Slice | ( | const Slice & | other | ) |
Copy constructor, adds a reference.
|
inline |
Raw pointer to the beginning (first element) of the slice.
|
inline |
Raw pointer to the end (one byte past the last element) of the slice.
|
inline |
Byte size.
|
friend |
1.8.11