GRPC Core  43.0.0
Public Member Functions | Static Public Member Functions
grpc_event_engine::experimental::Slice Class Reference

#include <slice.h>

Public Member Functions

 Slice ()=default
 
 ~Slice ()
 
 Slice (const grpc_slice &slice)
 
 Slice (slice_detail::BaseSlice &&other)
 
 Slice (const Slice &)=delete
 
Sliceoperator= (const Slice &)=delete
 
 Slice (Slice &&other) noexcept
 
Sliceoperator= (Slice &&other) noexcept
 
Slice TakeOwned ()
 
Slice AsOwned () const
 
MutableSlice TakeMutable ()
 
Slice TakeSubSlice (size_t pos, size_t n)
 
Slice RefSubSlice (size_t pos, size_t n) const
 
Slice Split (size_t split)
 
Slice Ref () const
 
Slice Copy () const
 
- Public Member Functions inherited from grpc_event_engine::experimental::slice_detail::BaseSlice
 BaseSlice (const BaseSlice &)=delete
 
BaseSliceoperator= (const BaseSlice &)=delete
 
 BaseSlice (BaseSlice &&other)=delete
 
BaseSliceoperator= (BaseSlice &&other)=delete
 
const uint8_t * begin () const
 
const uint8_t * end () const
 
const uint8_t * cbegin () const
 
const uint8_t * cend () const
 
const grpc_slicec_slice () const
 
grpc_slice TakeCSlice ()
 
absl::string_view as_string_view () const
 
uint8_t operator[] (size_t i) const
 
const uint8_t * data () const
 
size_t size () const
 
size_t length () const
 
bool empty () const
 
bool is_equivalent (const BaseSlice &other) const
 
uint32_t Hash () const
 

Static Public Member Functions

static Slice FromRefcountAndBytes (grpc_slice_refcount *r, const uint8_t *begin, const uint8_t *end)
 
- Static Public Member Functions inherited from grpc_event_engine::experimental::slice_detail::CopyConstructors< Slice >
static Slice FromCopiedString (const char *s)
 
static Slice FromCopiedString (absl::string_view s)
 
static Slice FromCopiedString (std::string s)
 
static Slice FromCopiedBuffer (const char *p, size_t len)
 
static Slice FromCopiedBuffer (const uint8_t *p, size_t len)
 
static Slice FromCopiedBuffer (const Buffer &buffer)
 

Additional Inherited Members

- Protected Member Functions inherited from grpc_event_engine::experimental::slice_detail::BaseSlice
 BaseSlice ()
 
 BaseSlice (const grpc_slice &slice)
 
 ~BaseSlice ()=default
 
void Swap (BaseSlice *other)
 
void SetCSlice (const grpc_slice &slice)
 
uint8_t * mutable_data ()
 
grpc_slicec_slice_ptr ()
 

Constructor & Destructor Documentation

◆ Slice() [1/5]

grpc_event_engine::experimental::Slice::Slice ( )
default

◆ ~Slice()

grpc_event_engine::experimental::Slice::~Slice ( )

◆ Slice() [2/5]

grpc_event_engine::experimental::Slice::Slice ( const grpc_slice slice)
inlineexplicit

◆ Slice() [3/5]

grpc_event_engine::experimental::Slice::Slice ( slice_detail::BaseSlice &&  other)
inlineexplicit

◆ Slice() [4/5]

grpc_event_engine::experimental::Slice::Slice ( const Slice )
delete

◆ Slice() [5/5]

grpc_event_engine::experimental::Slice::Slice ( Slice &&  other)
inlinenoexcept

Member Function Documentation

◆ AsOwned()

Slice grpc_event_engine::experimental::Slice::AsOwned ( ) const

◆ Copy()

Slice grpc_event_engine::experimental::Slice::Copy ( ) const
inline

◆ FromRefcountAndBytes()

static Slice grpc_event_engine::experimental::Slice::FromRefcountAndBytes ( grpc_slice_refcount *  r,
const uint8_t *  begin,
const uint8_t *  end 
)
static

◆ operator=() [1/2]

Slice& grpc_event_engine::experimental::Slice::operator= ( const Slice )
delete

◆ operator=() [2/2]

Slice& grpc_event_engine::experimental::Slice::operator= ( Slice &&  other)
inlinenoexcept

◆ Ref()

Slice grpc_event_engine::experimental::Slice::Ref ( ) const

◆ RefSubSlice()

Slice grpc_event_engine::experimental::Slice::RefSubSlice ( size_t  pos,
size_t  n 
) const
inline

◆ Split()

Slice grpc_event_engine::experimental::Slice::Split ( size_t  split)
inline

◆ TakeMutable()

MutableSlice grpc_event_engine::experimental::Slice::TakeMutable ( )

◆ TakeOwned()

Slice grpc_event_engine::experimental::Slice::TakeOwned ( )

◆ TakeSubSlice()

Slice grpc_event_engine::experimental::Slice::TakeSubSlice ( size_t  pos,
size_t  n 
)
inline

The documentation for this class was generated from the following file: