Auto-generate files after cl/621597812
diff --git a/ruby/ext/google/protobuf_c/ruby-upb.c b/ruby/ext/google/protobuf_c/ruby-upb.c index feda814..626078c 100644 --- a/ruby/ext/google/protobuf_c/ruby-upb.c +++ b/ruby/ext/google/protobuf_c/ruby-upb.c
@@ -8451,12 +8451,12 @@ return upb_Decoder_Decode(&decoder, buf, msg, mt, arena); } -upb_DecodeStatus upb_DecodeLengthDelimited(const char* buf, size_t size, - upb_Message* msg, - size_t* num_bytes_read, - const upb_MiniTable* mt, - const upb_ExtensionRegistry* extreg, - int options, upb_Arena* arena) { +upb_DecodeStatus upb_DecodeLengthPrefixed(const char* buf, size_t size, + upb_Message* msg, + size_t* num_bytes_read, + const upb_MiniTable* mt, + const upb_ExtensionRegistry* extreg, + int options, upb_Arena* arena) { // To avoid needing to make a Decoder just to decode the initial length, // hand-decode the leading varint for the message length here. uint64_t msg_len = 0; @@ -9119,10 +9119,10 @@ return _upb_Encode(msg, l, options, arena, buf, size, false); } -upb_EncodeStatus upb_EncodeLengthDelimited(const upb_Message* msg, - const upb_MiniTable* l, int options, - upb_Arena* arena, char** buf, - size_t* size) { +upb_EncodeStatus upb_EncodeLengthPrefixed(const upb_Message* msg, + const upb_MiniTable* l, int options, + upb_Arena* arena, char** buf, + size_t* size) { return _upb_Encode(msg, l, options, arena, buf, size, true); }
diff --git a/ruby/ext/google/protobuf_c/ruby-upb.h b/ruby/ext/google/protobuf_c/ruby-upb.h index f19d6db..7a84ef1 100755 --- a/ruby/ext/google/protobuf_c/ruby-upb.h +++ b/ruby/ext/google/protobuf_c/ruby-upb.h
@@ -4150,7 +4150,7 @@ // Same as upb_Decode but with a varint-encoded length prepended. // On success 'num_bytes_read' will be set to the how many bytes were read, // on failure the contents of num_bytes_read is undefined. -UPB_API upb_DecodeStatus upb_DecodeLengthDelimited( +UPB_API upb_DecodeStatus upb_DecodeLengthPrefixed( const char* buf, size_t size, upb_Message* msg, size_t* num_bytes_read, const upb_MiniTable* mt, const upb_ExtensionRegistry* extreg, int options, upb_Arena* arena); @@ -4222,11 +4222,10 @@ upb_Arena* arena, char** buf, size_t* size); // Encodes the message prepended by a varint of the serialized length. -UPB_API upb_EncodeStatus upb_EncodeLengthDelimited(const upb_Message* msg, - const upb_MiniTable* l, - int options, - upb_Arena* arena, char** buf, - size_t* size); +UPB_API upb_EncodeStatus upb_EncodeLengthPrefixed(const upb_Message* msg, + const upb_MiniTable* l, + int options, upb_Arena* arena, + char** buf, size_t* size); #ifdef __cplusplus } /* extern "C" */