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

Method SerializeTo

common/values/int_value.cc:46–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46absl::Status IntValue::SerializeTo(
47 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
48 google::protobuf::MessageFactory* absl_nonnull message_factory,
49 google::protobuf::io::ZeroCopyOutputStream* absl_nonnull output) const {
50 ABSL_DCHECK(descriptor_pool != nullptr);
51 ABSL_DCHECK(message_factory != nullptr);
52 ABSL_DCHECK(output != nullptr);
53
54 google::protobuf::Int64Value message;
55 message.set_value(NativeValue());
56 if (!message.SerializePartialToZeroCopyStream(output)) {
57 return absl::UnknownError(
58 absl::StrCat("failed to serialize message: ", message.GetTypeName()));
59 }
60
61 return absl::OkStatus();
62}
63
64absl::Status IntValue::ConvertToJson(
65 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,

Callers 14

ToProtobufAnyFunction · 0.45
SetSingularFieldMethod · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 3

NativeValueFunction · 0.70
set_valueMethod · 0.45
GetTypeNameMethod · 0.45

Tested by 11

TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36