GRPC C++  1.66.0
Public Member Functions | Static Public Member Functions
grpc_event_engine::experimental::MutableSlice Class Reference

#include <slice.h>

Public Member Functions

 MutableSlice ()=default
 
 MutableSlice (const grpc_slice &slice)
 
 ~MutableSlice ()
 
 MutableSlice (const MutableSlice &)=delete
 
MutableSliceoperator= (const MutableSlice &)=delete
 
 MutableSlice (MutableSlice &&other) noexcept
 
MutableSliceoperator= (MutableSlice &&other) noexcept
 
MutableSlice TakeSubSlice (size_t pos, size_t n)
 
uint8_t * begin ()
 
uint8_t * end ()
 
uint8_t * data ()
 
uint8_t & operator[] (size_t i)
 
- 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 MutableSlice CreateUninitialized (size_t length)
 
- Static Public Member Functions inherited from grpc_event_engine::experimental::slice_detail::CopyConstructors< MutableSlice >
static MutableSlice FromCopiedString (const char *s)
 
static MutableSlice FromCopiedString (absl::string_view s)
 
static MutableSlice FromCopiedString (std::string s)
 
static MutableSlice FromCopiedBuffer (const char *p, size_t len)
 
static MutableSlice FromCopiedBuffer (const uint8_t *p, size_t len)
 
static MutableSlice 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

◆ MutableSlice() [1/4]

grpc_event_engine::experimental::MutableSlice::MutableSlice ( )
default

◆ MutableSlice() [2/4]

grpc_event_engine::experimental::MutableSlice::MutableSlice ( const grpc_slice slice)
explicit

◆ ~MutableSlice()

grpc_event_engine::experimental::MutableSlice::~MutableSlice ( )

◆ MutableSlice() [3/4]

grpc_event_engine::experimental::MutableSlice::MutableSlice ( const MutableSlice )
delete

◆ MutableSlice() [4/4]

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

Member Function Documentation

◆ begin()

uint8_t* grpc_event_engine::experimental::MutableSlice::begin ( )
inline

◆ CreateUninitialized()

static MutableSlice grpc_event_engine::experimental::MutableSlice::CreateUninitialized ( size_t  length)
inlinestatic

◆ data()

uint8_t* grpc_event_engine::experimental::MutableSlice::data ( )
inline

◆ end()

uint8_t* grpc_event_engine::experimental::MutableSlice::end ( )
inline

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ operator[]()

uint8_t& grpc_event_engine::experimental::MutableSlice::operator[] ( size_t  i)
inline

◆ TakeSubSlice()

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

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