class Slice

Defined at line 221 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h

Forward declarations

Public Methods

void Slice ()

Defined at line 225 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h

void Slice (const grpc_slice & slice)

Defined at line 227 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h

void Slice (slice_detail::BaseSlice && other)

Defined at line 228 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h

void Slice (const Slice & )

Defined at line 231 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h

Slice & operator= (const Slice & )

Defined at line 232 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h

void Slice (Slice && other)

Defined at line 233 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h

Slice & operator= (Slice && other)

Defined at line 234 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h

void ~Slice ()
Slice TakeOwned ()

TakeOwned returns an owned slice regardless of current ownership, and

leaves the current slice in a valid but externally unpredictable state - in

doing so it can avoid adding a ref to the underlying slice.

Slice AsOwned ()

AsOwned returns an owned slice but does not mutate the current slice,

meaning that it may add a reference to the underlying slice.

MutableSlice TakeMutable ()

TakeMutable returns a MutableSlice, and leaves the current slice in an

indeterminate but valid state.

A mutable slice requires only one reference to the bytes of the slice -

this can be achieved either with inlined storage or with a single

reference.

If the current slice is refcounted and there are more than one references

to that slice, then the slice is copied in order to achieve a mutable

version.

Slice Ref ()
Slice TakeSubSlice (size_t pos, size_t n)

Return a sub slice of this one. Leaves this slice in an indeterminate but

valid state.

Defined at line 267 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h

Slice RefSubSlice (size_t pos, size_t n)

Return a sub slice of this one. Adds a reference to the underlying slice.

Defined at line 272 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h

Slice Split (size_t split)

Split this slice, returning a new slice containing (split:end] and

leaving this slice with [begin:split).

Defined at line 278 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h

Slice Copy ()

Defined at line 284 of file ../../third_party/grpc-migrating/src/include/grpc/event_engine/slice.h

Slice FromRefcountAndBytes (grpc_slice_refcount * r, const uint8_t * begin, const uint8_t * end)