Skip to content

Commit

Permalink
cel::common_internal::ByteString and `cel::common_internal::ByteStr…
Browse files Browse the repository at this point in the history
…ingView`

PiperOrigin-RevId: 640208677
  • Loading branch information
jcking authored and copybara-github committed Jun 5, 2024
1 parent 9a58a25 commit 86b0ccc
Show file tree
Hide file tree
Showing 5 changed files with 3,353 additions and 0 deletions.
42 changes: 42 additions & 0 deletions common/internal/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,45 @@ cc_library(
hdrs = ["metadata.h"],
deps = ["@com_google_protobuf//:protobuf"],
)

cc_library(
name = "byte_string",
srcs = ["byte_string.cc"],
hdrs = ["byte_string.h"],
deps = [
":metadata",
":reference_count",
"//common:allocator",
"//common:memory",
"//internal:new",
"@com_google_absl//absl/base:core_headers",
"@com_google_absl//absl/base:nullability",
"@com_google_absl//absl/functional:overload",
"@com_google_absl//absl/hash",
"@com_google_absl//absl/log:absl_check",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:cord",
"@com_google_absl//absl/strings:string_view",
"@com_google_absl//absl/types:optional",
"@com_google_protobuf//:protobuf",
],
)

cc_test(
name = "byte_string_test",
srcs = ["byte_string_test.cc"],
deps = [
":byte_string",
":reference_count",
"//common:allocator",
"//common:memory",
"//internal:testing",
"@com_google_absl//absl/base:no_destructor",
"@com_google_absl//absl/hash",
"@com_google_absl//absl/strings:cord",
"@com_google_absl//absl/strings:cord_test_helpers",
"@com_google_absl//absl/strings:string_view",
"@com_google_absl//absl/types:optional",
"@com_google_protobuf//:protobuf",
],
)
Loading

0 comments on commit 86b0ccc

Please # to comment.