Classes | Public Attributes | List of all members
grpc_slice Struct Reference

#include <slice.h>

Classes

union  grpc_slice_data
 

Public Attributes

union grpc_slice::grpc_slice_data data
 
struct grpc_slice_refcountrefcount
 

Detailed Description

A grpc_slice s, if initialized, represents the byte range s.bytes[0..s.length-1].

It can have an associated ref count which has a destruction routine to be run when the ref count reaches zero (see grpc_slice_new() and grp_slice_unref()). Multiple grpc_slice values may share a ref count.

If the slice does not have a refcount, it represents an inlined small piece of data that is copied by value.

As a special case, a slice can be given refcount == uintptr_t(1), meaning that the slice represents external data that is not refcounted.

Definition at line 65 of file include/grpc/impl/codegen/slice.h.

Member Data Documentation

◆ data

union grpc_slice::grpc_slice_data grpc_slice::data

◆ refcount

struct grpc_slice_refcount* grpc_slice::refcount

Definition at line 66 of file include/grpc/impl/codegen/slice.h.


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


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