Go to the documentation of this file.
15 #ifndef GRPC_EVENT_ENGINE_SLICE_BUFFER_H
16 #define GRPC_EVENT_ENGINE_SLICE_BUFFER_H
25 #include "absl/strings/string_view.h"
26 #include "absl/utility/utility.h"
34 namespace experimental {
118 #endif // GRPC_EVENT_ENGINE_SLICE_BUFFER_H
size_t Length()
The total number of bytes held by the SliceBuffer.
GPRAPI void grpc_slice_buffer_destroy(grpc_slice_buffer *sb)
void Prepend(Slice slice)
Prepends the slice to the the front of the SliceBuffer.
void MoveFirstNBytesIntoBuffer(size_t n, void *dst)
Move the first n bytes of the SliceBuffer into a memory pointed to by dst.
GPRAPI void grpc_slice_buffer_move_first_into_buffer(grpc_slice_buffer *src, size_t n, void *dst)
Slice RefSlice(size_t index)
SliceBuffer & operator=(SliceBuffer &&other) noexcept
Slice TakeFirst()
Removes the first slice in the SliceBuffer and returns it.
grpc_slice_buffer slice_buffer_
The backing raw slice buffer.
GPRAPI void grpc_slice_buffer_reset_and_unref(grpc_slice_buffer *sb)
GPRAPI void grpc_slice_buffer_swap(grpc_slice_buffer *a, grpc_slice_buffer *b)
void RemoveLastNBytes(size_t n)
Removes/deletes the last n bytes in the SliceBuffer.
GPRAPI void grpc_slice_buffer_init(grpc_slice_buffer *sb)
SliceBuffer(SliceBuffer &&other) noexcept
size_t AppendIndexed(Slice slice)
SliceBuffer & operator=(const SliceBuffer &)=delete
grpc_slice_buffer * c_slice_buffer()
Return a pointer to the back raw grpc_slice_buffer.
GPRAPI void grpc_slice_buffer_trim_end(grpc_slice_buffer *sb, size_t n, grpc_slice_buffer *garbage)
size_t Count()
Returns the number of slices held by the SliceBuffer.
void Clear()
Removes and unrefs all slices in the SliceBuffer.
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:19