Skip to content

Inline small CEL C++ ByteString and Value methods. - #2333

Closed
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_995085211
Closed

copybara-service[bot] wants to merge 1 commit into
masterfrom
test_995085211

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Inline small CEL C++ ByteString and Value methods.

Previously, small ByteString methods (Wrap, WrapUnsafe, SetSmall, SetMedium, SetLarge, empty, size, GetArena, TryFlat, AsStringView, HashValue, Equals, Compare, StartsWith, EndsWith), StringValue::Equals, StringValue::Equal, BytesValue::Equals, BytesValue::Equal, BoolValue::Equal, and Value scalar accessors (AsBytes, AsDouble, AsInt, AsString, AsUint, GetBytes, GetDouble, GetInt, GetString, GetUint) were defined out-of-line across translation units, and StringValue::Equal / BytesValue::Equal performed nested NativeValue visitation instead of delegating to Equals.

Move these small ByteString and Value methods inline into their headers and have StringValue::Equal and BytesValue::Equal delegate directly to Equals.

Previously, small `ByteString` methods (`Wrap`, `WrapUnsafe`, `SetSmall`, `SetMedium`, `SetLarge`, `empty`, `size`, `GetArena`, `TryFlat`, `AsStringView`, `HashValue`, `Equals`, `Compare`, `StartsWith`, `EndsWith`), `StringValue::Equals`, `StringValue::Equal`, `BytesValue::Equals`, `BytesValue::Equal`, `BoolValue::Equal`, and `Value` scalar accessors (`AsBytes`, `AsDouble`, `AsInt`, `AsString`, `AsUint`, `GetBytes`, `GetDouble`, `GetInt`, `GetString`, `GetUint`) were defined out-of-line across translation units, and `StringValue::Equal` / `BytesValue::Equal` performed nested `NativeValue` visitation instead of delegating to `Equals`.

Move these small `ByteString` and `Value` methods inline into their headers and have `StringValue::Equal` and `BytesValue::Equal` delegate directly to `Equals`.

PiperOrigin-RevId: 995085211
@copybara-service copybara-service Bot closed this Oct 8, 2026
@copybara-service
copybara-service Bot deleted the test_995085211 branch October 8, 2026 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants