class BaseSlice
Defined at line 50 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h
BaseSlice holds the grpc_slice object, but does not apply refcounting policy.
It does export immutable access into the slice, such that this can be shared
by all storage policies.
Public Methods
void BaseSlice (const BaseSlice & )
Defined at line 52 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h
uint32_t Hash ()
BaseSlice & operator= (const BaseSlice & )
Defined at line 53 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h
void BaseSlice (BaseSlice && other)
Defined at line 54 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h
BaseSlice & operator= (BaseSlice && other)
Defined at line 55 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h
const uint8_t * begin ()
Iterator access to the underlying bytes
Defined at line 58 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h
const uint8_t * end ()
Defined at line 59 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h
const uint8_t * cbegin ()
Defined at line 60 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h
const uint8_t * cend ()
Defined at line 61 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h
const grpc_slice & c_slice ()
Retrieve a borrowed reference to the underlying grpc_slice.
Defined at line 64 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h
grpc_slice TakeCSlice ()
Retrieve the underlying grpc_slice, and replace the one in this object with
EmptySlice().
Defined at line 68 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h
absl::string_view as_string_view ()
As other things... borrowed references.
Defined at line 75 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h
uint8_t operator[] (size_t i)
Array access
Defined at line 80 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h
const uint8_t * data ()
Access underlying data
Defined at line 85 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h
size_t size ()
Size of the slice
Defined at line 88 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h
size_t length ()
Defined at line 89 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h
bool empty ()
Defined at line 90 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h
bool is_equivalent (const BaseSlice & other)
For inlined slices - are these two slices equal?
For non-inlined slices - do these two slices refer to the same block of
memory?
Defined at line 95 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h
Protected Methods
void BaseSlice ()
Defined at line 102 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h
void BaseSlice (const grpc_slice & slice)
Defined at line 103 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h
void ~BaseSlice ()
Defined at line 104 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h
void Swap (BaseSlice * other)
Defined at line 106 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h
void SetCSlice (const grpc_slice & slice)
Defined at line 107 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h
uint8_t * mutable_data ()
Defined at line 109 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h
grpc_slice * c_slice_ptr ()
Defined at line 111 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h