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

Method SetLarge

common/internal/byte_string.cc:1029–1033  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1027}
1028
1029void ByteString::SetLarge(const absl::Cord& cord) {
1030 ABSL_DCHECK_GT(cord.size(), kSmallByteStringCapacity);
1031 rep_.header.kind = ByteStringKind::kLarge;
1032 ::new (static_cast<void*>(&rep_.large.data[0])) absl::Cord(cord);
1033}
1034
1035void ByteString::SetLarge(absl::Cord&& cord) {
1036 ABSL_DCHECK_GT(cord.size(), kSmallByteStringCapacity);

Callers 1

SwapMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected