34 #ifndef GRPCXX_SLICE_H
35 #define GRPCXX_SLICE_H
37 #include <grpc/support/slice.h>
58 std::swap(slice_, other.slice_);
62 size_t size()
const {
return GPR_SLICE_LENGTH(slice_); }
63 const gpr_uint8*
begin()
const {
return GPR_SLICE_START_PTR(slice_); }
64 const gpr_uint8*
end()
const {
return GPR_SLICE_END_PTR(slice_); }
74 #endif // GRPCXX_SLICE_H
~Slice()
Definition: slice.cc:40
const gpr_uint8 * end() const
Definition: slice.h:64
StealRef
Definition: slice.h:52
const gpr_uint8 * begin() const
Definition: slice.h:63
#define GRPC_FINAL
Definition: config.h:71
Slice()
Definition: slice.cc:38
size_t size() const
Definition: slice.h:62
Slice & operator=(Slice other)
Definition: slice.h:57
AddRef
Definition: slice.h:49
Definition: byte_buffer.h:49