Public Member Functions | Static Public Member Functions | List of all members
grpc_core::MutableSlice Class Reference

#include <slice.h>

Inheritance diagram for grpc_core::MutableSlice:
Inheritance graph
[legend]

Public Member Functions

uint8_tbegin ()
 
uint8_tdata ()
 
uint8_tend ()
 
 MutableSlice ()=default
 
 MutableSlice (const grpc_slice &slice)
 
 MutableSlice (const MutableSlice &)=delete
 
 MutableSlice (MutableSlice &&other) noexcept
 
MutableSliceoperator= (const MutableSlice &)=delete
 
MutableSliceoperator= (MutableSlice &&other) noexcept
 
uint8_toperator[] (size_t i)
 
MutableSlice TakeSubSlice (size_t pos, size_t n)
 
 ~MutableSlice ()
 
- Public Member Functions inherited from grpc_core::slice_detail::BaseSlice
absl::string_view as_string_view () const
 
 BaseSlice (BaseSlice &&other)=delete
 
 BaseSlice (const BaseSlice &)=delete
 
const uint8_tbegin () const
 
const grpc_slicec_slice () const
 
const uint8_tcbegin () const
 
const uint8_tcend () const
 
const uint8_tdata () const
 
bool empty () const
 
const uint8_tend () const
 
uint32_t Hash () const
 
bool is_equivalent (const BaseSlice &other) const
 
size_t length () const
 
BaseSliceoperator= (BaseSlice &&other)=delete
 
BaseSliceoperator= (const BaseSlice &)=delete
 
uint8_t operator[] (size_t i) const
 
size_t size () const
 
grpc_slice TakeCSlice ()
 

Static Public Member Functions

static MutableSlice CreateUninitialized (size_t length)
 
- Static Public Member Functions inherited from grpc_core::slice_detail::CopyConstructors< MutableSlice >
static MutableSlice FromCopiedBuffer (const Buffer &buffer)
 
static MutableSlice FromCopiedBuffer (const char *p, size_t len)
 
static MutableSlice FromCopiedString (absl::string_view s)
 
static MutableSlice FromCopiedString (const char *s)
 
static MutableSlice FromCopiedString (std::string s)
 
static MutableSlice FromInt64 (int64_t i)
 

Additional Inherited Members

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

Detailed Description

Definition at line 244 of file src/core/lib/slice/slice.h.

Constructor & Destructor Documentation

◆ MutableSlice() [1/4]

grpc_core::MutableSlice::MutableSlice ( )
default

◆ MutableSlice() [2/4]

grpc_core::MutableSlice::MutableSlice ( const grpc_slice slice)
inlineexplicit

Definition at line 248 of file src/core/lib/slice/slice.h.

◆ ~MutableSlice()

grpc_core::MutableSlice::~MutableSlice ( )
inline

Definition at line 252 of file src/core/lib/slice/slice.h.

◆ MutableSlice() [3/4]

grpc_core::MutableSlice::MutableSlice ( const MutableSlice )
delete

◆ MutableSlice() [4/4]

grpc_core::MutableSlice::MutableSlice ( MutableSlice &&  other)
inlinenoexcept

Definition at line 256 of file src/core/lib/slice/slice.h.

Member Function Documentation

◆ begin()

uint8_t* grpc_core::MutableSlice::begin ( )
inline

Definition at line 274 of file src/core/lib/slice/slice.h.

◆ CreateUninitialized()

static MutableSlice grpc_core::MutableSlice::CreateUninitialized ( size_t  length)
inlinestatic

Definition at line 263 of file src/core/lib/slice/slice.h.

◆ data()

uint8_t* grpc_core::MutableSlice::data ( )
inline

Definition at line 276 of file src/core/lib/slice/slice.h.

◆ end()

uint8_t* grpc_core::MutableSlice::end ( )
inline

Definition at line 275 of file src/core/lib/slice/slice.h.

◆ operator=() [1/2]

MutableSlice& grpc_core::MutableSlice::operator= ( const MutableSlice )
delete

◆ operator=() [2/2]

MutableSlice& grpc_core::MutableSlice::operator= ( MutableSlice &&  other)
inlinenoexcept

Definition at line 258 of file src/core/lib/slice/slice.h.

◆ operator[]()

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

Definition at line 279 of file src/core/lib/slice/slice.h.

◆ TakeSubSlice()

MutableSlice grpc_core::MutableSlice::TakeSubSlice ( size_t  pos,
size_t  n 
)
inline

Definition at line 269 of file src/core/lib/slice/slice.h.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:36