MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / SetDataReferenceCount

Function SetDataReferenceCount

common/data.h:101–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99namespace common_internal {
100
101inline void SetDataReferenceCount(const Data* absl_nonnull data,
102 const ReferenceCount* absl_nonnull refcount) {
103 ABSL_DCHECK_EQ(data->owner_, Data::kOwnerNone);
104 data->owner_ =
105 reinterpret_cast<uintptr_t>(refcount) | Data::kOwnerReferenceCountBit;
106}
107
108inline const ReferenceCount* absl_nullable GetDataReferenceCount(
109 const Data* absl_nonnull data) {

Callers 3

TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68