Go to the documentation of this file.
15 #ifndef GRPC_EVENT_ENGINE_SLICE_H
16 #define GRPC_EVENT_ENGINE_SLICE_H
26 #include "absl/strings/string_view.h"
36 namespace experimental {
42 namespace slice_detail {
126 return a.as_string_view() ==
b;
130 return a.as_string_view() !=
b;
134 return a ==
b.as_string_view();
138 return a !=
b.as_string_view();
157 template <
typename Out>
171 template <
typename Buffer>
286 #endif // GRPC_EVENT_ENGINE_SLICE_H
bool is_equivalent(const BaseSlice &other) const
MutableSlice & operator=(const MutableSlice &)=delete
MutableSlice TakeSubSlice(size_t pos, size_t n)
const uint8_t * cend() const
static Out FromCopiedString(const char *s)
bool operator==(const BaseSlice &a, const BaseSlice &b)
void Swap(BaseSlice *other)
Slice Split(size_t split)
Slice(slice_detail::BaseSlice &&other)
Slice RefSubSlice(size_t pos, size_t n) const
GPRAPI grpc_slice grpc_slice_sub(grpc_slice s, size_t begin, size_t end)
const uint8_t * end() const
MutableSlice(MutableSlice &&other) noexcept
GPRAPI grpc_slice grpc_slice_sub_no_ref(grpc_slice s, size_t begin, size_t end)
BaseSlice(const grpc_slice &slice)
MutableSlice & operator=(MutableSlice &&other) noexcept
GPRAPI grpc_slice grpc_slice_malloc(size_t length)
static constexpr grpc_slice EmptySlice()
uint8_t & operator[](size_t i)
const uint8_t * cbegin() const
absl::string_view as_string_view() const
Slice(const grpc_slice &slice)
static Out FromCopiedBuffer(const char *p, size_t len)
void SetCSlice(const grpc_slice &slice)
GPRAPI int grpc_slice_is_equivalent(grpc_slice a, grpc_slice b)
Slice(Slice &&other) noexcept
static Out FromCopiedString(absl::string_view s)
grpc_slice * c_slice_ptr()
bool operator!=(const BaseSlice &a, const BaseSlice &b)
Slice TakeSubSlice(size_t pos, size_t n)
Slice & operator=(Slice &&other) noexcept
#define GRPC_SLICE_START_PTR(slice)
Slice & operator=(const Slice &)=delete
MutableSlice TakeMutable()
void swap(Json::Value &a, Json::Value &b)
Specialize std::swap() for Json::Value.
#define GRPC_SLICE_END_PTR(slice)
const uint8_t * begin() const
const uint8_t * data() const
#define GRPC_SLICE_LENGTH(slice)
GPRAPI grpc_slice grpc_slice_from_copied_buffer(const char *source, size_t len)
static Slice FromRefcountAndBytes(grpc_slice_refcount *r, const uint8_t *begin, const uint8_t *end)
absl::string_view string_view
static Out FromCopiedBuffer(const Buffer &buffer)
static void split(const char *s, char ***ss, size_t *ns)
static MutableSlice CreateUninitialized(size_t length)
uint8_t operator[](size_t i) const
GPRAPI int grpc_slice_eq(grpc_slice a, grpc_slice b)
const grpc_slice & c_slice() const
GPRAPI grpc_slice grpc_slice_split_tail(grpc_slice *s, size_t split)
BaseSlice & operator=(const BaseSlice &)=delete
GPRAPI grpc_slice grpc_slice_copy(grpc_slice s)
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:13