GRPC Core  6.0.0
Data Fields
grpc_slice_refcount Struct Reference

Reference count container for grpc_slice. More...

#include <slice.h>

Data Fields

const grpc_slice_refcount_vtablevtable
 
struct grpc_slice_refcountsub_refcount
 If a subset of this slice is taken, use this pointer for the refcount. More...
 

Detailed Description

Reference count container for grpc_slice.

Contains function pointers to increment and decrement reference counts. Implementations should cleanup when the reference count drops to zero. Typically client code should not touch this, and use grpc_slice_malloc, grpc_slice_new, or grpc_slice_new_with_len instead.

Field Documentation

◆ sub_refcount

struct grpc_slice_refcount* grpc_slice_refcount::sub_refcount

If a subset of this slice is taken, use this pointer for the refcount.

Typically points back to the refcount itself, however iterning implementations can use this to avoid a verification step on each hash or equality check

◆ vtable

const grpc_slice_refcount_vtable* grpc_slice_refcount::vtable

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