upb: factor out Java code for reading upb_Array data

PiperOrigin-RevId: 602461889
pull/15634/head
Eric Salo 1 year ago committed by Copybara-Service
parent 982ea24a94
commit 7303758dd2
  1. 2
      upb/base/string_view.h
  2. 7
      upb/message/internal/array.h

@ -46,7 +46,7 @@ UPB_INLINE bool upb_StringView_IsEqual(upb_StringView a, upb_StringView b) {
} }
// LINT.ThenChange( // LINT.ThenChange(
// GoogleInternalName0, // GoogleInternalName1,
// //depot/google3/third_party/upb/bits/golang/accessor.go:map_go_string, // //depot/google3/third_party/upb/bits/golang/accessor.go:map_go_string,
// //depot/google3/third_party/upb/bits/typescript/string_view.ts // //depot/google3/third_party/upb/bits/typescript/string_view.ts
// ) // )

@ -24,7 +24,8 @@
extern "C" { extern "C" {
#endif #endif
// LINT.IfChange(struct_definition) // LINT.IfChange(upb_Array)
// Our internal representation for repeated fields. // Our internal representation for repeated fields.
struct upb_Array { struct upb_Array {
// This is a tagged pointer. Bits #0 and #1 encode the elem size as follows: // This is a tagged pointer. Bits #0 and #1 encode the elem size as follows:
@ -131,9 +132,7 @@ UPB_INLINE size_t UPB_PRIVATE(_upb_Array_Size)(const struct upb_Array* arr) {
return arr->UPB_ONLYBITS(size); return arr->UPB_ONLYBITS(size);
} }
// LINT.ThenChange( // LINT.ThenChange(GoogleInternalName0)
// GoogleInternalName1,
//)
#ifdef __cplusplus #ifdef __cplusplus
} /* extern "C" */ } /* extern "C" */

Loading…
Cancel
Save