34 #ifndef GRPCXX_SUPPORT_SLICE_H 35 #define GRPCXX_SUPPORT_SLICE_H 38 #include <grpc/support/slice.h> 67 std::swap(slice_, other.slice_);
88 #endif // GRPCXX_SUPPORT_SLICE_H
StealRef
Definition: slice.h:58
A wrapper around gpr_slice.
Definition: slice.h:47
#define GPR_SLICE_START_PTR(slice)
Definition: slice.h:93
Slice()
Construct an empty slice.
#define GRPC_FINAL
Definition: config.h:72
const uint8_t * begin() const
Raw pointer to the beginning (first element) of the slice.
Definition: slice.h:75
size_t size() const
Byte size.
Definition: slice.h:72
Slice & operator=(Slice other)
Assignment, reference count is unchanged.
Definition: slice.h:66
#define GPR_SLICE_END_PTR(slice)
Definition: slice.h:102
AddRef
Definition: slice.h:54
A sequence of bytes.
Definition: byte_buffer.h:50
const uint8_t * end() const
Raw pointer to the end (one byte past the last element) of the slice.
Definition: slice.h:78
#define GPR_SLICE_LENGTH(slice)
Definition: slice.h:96