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

Method GetMediumReferenceCount

common/internal/byte_string.cc:664–671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

662}
663
664const ReferenceCount* absl_nullable ByteString::GetMediumReferenceCount(
665 const MediumByteStringRep& rep) {
666 if ((rep.owner & kMetadataOwnerBits) == kMetadataOwnerReferenceCountBit) {
667 return reinterpret_cast<const ReferenceCount*>(rep.owner &
668 kMetadataOwnerPointerMask);
669 }
670 return nullptr;
671}
672
673void ByteString::Construct(const ByteString& other,
674 absl::optional<Allocator<>> allocator) {

Callers 4

CopyFromMethod · 0.80
SubstringMethod · 0.80
TrimMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected