19 #ifndef GRPC_CORE_LIB_SLICE_SLICE_UTILS_H 20 #define GRPC_CORE_LIB_SLICE_SLICE_UTILS_H 117 bool operator==(std::pair<const char*, size_t> buflen)
const {
140 void HeapInit(
size_t length);
153 reinterpret_cast<uint8_t*>(const_cast<void*>(s))) {}
174 const uint8_t* bytes) {
184 struct InternedSliceRefcount;
Definition: slice_internal.h:100
#define GRPC_SLICE_LENGTH(slice)
Definition: slice.h:99
Definition: slice_utils.h:101
#define GRPC_SLICE_START_PTR(slice)
Definition: slice.h:96
struct grpc_slice::grpc_slice_data::grpc_slice_inlined inlined
UnmanagedMemorySlice(size_t length, const ForceHeapAllocation &)
Definition: slice_utils.h:135
Definition: slice_utils.h:185
bool operator!=(const grpc_slice &other) const
Definition: slice_utils.h:116
A grpc_slice s, if initialized, represents the byte range s.bytes[0..s.length-1]. ...
Definition: slice.h:60
ExternallyManagedSlice(grpc_slice_refcount *ref, size_t length, uint8_t *bytes)
Definition: slice_utils.h:154
InternedSlice(InternedSliceRefcount *s)
Definition: slice_intern.cc:110
ManagedMemorySlice()
Definition: slice_utils.h:102
bool grpc_slice_eq_static_interned(const grpc_slice &a, const grpc_slice &b_static_interned)
Definition: slice_utils.h:51
uint8_t length
Definition: slice.h:68
struct grpc_slice::grpc_slice_data::grpc_slice_refcounted refcounted
grpc_slice_refcount kNoopRefcount(grpc_slice_refcount::Type::NOP)
Definition: slice_internal.h:187
int grpc_slice_differs_refcounted(const grpc_slice &a, const grpc_slice &b_not_inline)
Definition: slice.cc:466
Round Robin Policy.
Definition: backend_metric.cc:24
ExternallyManagedSlice()
Definition: slice_utils.h:146
ExternallyManagedSlice(const char *s)
Definition: slice_utils.h:148
struct grpc_slice_refcount * refcount
Definition: slice.h:61
size_t length
Definition: slice.h:64
uint32_t g_hash_seed
Definition: slice_intern.cc:68
bool operator==(const grpc_slice &other) const
Definition: slice_utils.h:110
ExternallyManagedSlice(const void *s, size_t len)
Definition: slice_utils.h:150
Definition: slice_utils.h:122
union grpc_slice::grpc_slice_data data
bool operator!=(const grpc_slice &other) const
Definition: slice_utils.h:165
Definition: slice_utils.h:145
uint32_t Hash()
Definition: slice_utils.h:166
bool operator==(const grpc_slice &other) const
Definition: slice_utils.h:160
Definition: slice_internal.h:189
UnmanagedMemorySlice()
Definition: slice_utils.h:125
bool operator==(std::pair< const char *, size_t > buflen) const
Definition: slice_utils.h:117
uint8_t * bytes
Definition: slice.h:65
ForceHeapAllocation
Definition: slice_utils.h:124
uint32_t gpr_murmur_hash3(const void *key, size_t len, uint32_t seed)
Definition: murmur_hash.cc:34