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

Method SerializeTo

common/values/uint_value.cc:45–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

NativeValueFunction · 0.70
set_valueMethod · 0.45
GetTypeNameMethod · 0.45

Tested by

no test coverage detected