…lines 1–15 unchanged (15 lines)
16
17bool proto2_rust_Message_parse(google::protobuf::MessageLite* m,
18 google::protobuf::rust::PtrAndLen input) {
19 if (input.len > std::numeric_limits<int>::max()) {
20 return false;
21 }
22 return m->ParseFromString(
23 absl::string_view(input.ptr, static_cast<int>(input.len)));
24}
25
26bool proto2_rust_Message_parse_dont_enforce_required(
27 google::protobuf::MessageLite* m, google::protobuf::rust::PtrAndLen input) {
28 if (input.len > std::numeric_limits<int>::max()) {
29 return false;
30 }
31 return m->ParsePartialFromString(
32 absl::string_view(input.ptr, static_cast<int>(input.len)));
33}
34
35bool proto2_rust_Message_serialize(const google::protobuf::MessageLite* m,
36 google::protobuf::rust::SerializedData* output) {
37 return google::protobuf::rust::SerializeMsg(m, output);
38}
…lines 39–65 unchanged (27 lines)