Hong Shin
0730adb1c1
rename upb_Message_WhichOneof to upb_Message_WhichOneofByDef
...
and introduce upb_Message_WhichOneof that returns a minitable field without needing reflection
PiperOrigin-RevId: 637932147
6 months ago
Protobuf Team Bot
5fb5b871dc
Remove spurious 'return' in a void function of another void.
...
PiperOrigin-RevId: 635530952
7 months ago
Eric Salo
f93565c20c
upb: publish and start using the new non-universal setters out in the wild
...
PiperOrigin-RevId: 632663127
7 months ago
Eric Salo
6245733655
upb: remove the unused (upb_MiniTable*) arg from upb_Message_SetMessage()
...
PiperOrigin-RevId: 632267379
7 months ago
Eric Salo
d923896299
upb: implement most of the non-universal setters
...
PiperOrigin-RevId: 631620526
7 months ago
Eric Salo
65821a67d6
upb: finish cleaning up message/accessors.h and message/internal/accessors.h
...
PiperOrigin-RevId: 631612923
7 months ago
Hong Shin
6ccda4d2b5
Add upb_Message_ClearOneof (and retain upb_Message_WhichOneofFieldNumber)
...
upb users currently need to manually fetch a oneof field in order to clear it.
In this CL, we add a convenience method to do that in one fell swoop.
PiperOrigin-RevId: 631454136
7 months ago
Eric Salo
18306666b9
upb: clean up the UPB_TRACING_ENABLED code
...
PiperOrigin-RevId: 631023575
7 months ago
Eric Salo
aa70a3576b
upb: clean up message/accessors.h and message/internal/accessors.h
...
PiperOrigin-RevId: 630466865
7 months ago
Éamonn McManus
b4f4f8ef65
Automated rollback of commit 7a09c4569b
.
...
PiperOrigin-RevId: 629808114
7 months ago
Hong Shin
7a09c4569b
Add upb_Message_ClearOneof
...
upb users currently need to manually fetch a oneof field in order to clear it.
In this CL, we add a convenience method to do that in one fell swoop.
PiperOrigin-RevId: 629782904
7 months ago
Hong Shin
e0fc566596
Ensure the appropriate upb functions taking non-const pointers assert that the message is not frozen.
...
Fixes message/promote.c and internal/extension.c.
PiperOrigin-RevId: 628095780
7 months ago
Hong Shin
5b5db6666e
Check IsFrozen for internal/message.c and reflection/message.c
...
PiperOrigin-RevId: 627531912
7 months ago
Eric Salo
9118be944d
upb: extension/basefield setters are now public functions
...
PiperOrigin-RevId: 623355801
8 months ago
Eric Salo
52aa23f3fc
upb: reuse upb_Message_Internal buffer after a upb_Message_Clear()
...
PiperOrigin-RevId: 622913413
8 months ago
Eric Salo
d51df2d2d7
upb: make upb_Array_Reserve() a public function
...
PiperOrigin-RevId: 620303837
8 months ago
Protobuf Team Bot
2f0fe0641c
Add Arena tracing handlers.
...
PiperOrigin-RevId: 615779322
9 months ago
Mike Kruskal
b6032d72e3
Add basic upb cmake support.
...
libupb will always be statically linked, and currently doesn't ever install itself.
PiperOrigin-RevId: 615136389
9 months ago
Protobuf Team Bot
cbfb6991f3
Add api to trace message allocations.
...
Initialize minitable tracing field for MtDecoder
Add api for non C language runtimes to initialize dynamic mini table name.
PiperOrigin-RevId: 613664457
9 months ago
Eric Salo
c69ed472cd
upb: implement minitable-based field iterators
...
PiperOrigin-RevId: 605718863
10 months ago
Eric Salo
b0d3a787cc
upb: Simplify inline functions in mini_table/ and mem/ and wire/ and message/
...
PiperOrigin-RevId: 605413999
10 months ago
Eric Salo
f212cc23d7
upb: use upb_MessageValue in upb_Extension
...
PiperOrigin-RevId: 602785269
10 months ago
Eric Salo
7303758dd2
upb: factor out Java code for reading upb_Array data
...
PiperOrigin-RevId: 602461889
10 months ago
Eric Salo
7b6a845ab7
upb: implement immutability
...
PiperOrigin-RevId: 601848001
10 months ago
Eric Salo
5bded04d28
upb: add 'static' to UPB_FORCEINLINE()
...
PiperOrigin-RevId: 601525709
10 months ago
Eric Salo
953d521a04
upb: upb_Message_FindExtensionByNumber() no longer returns a (upb_Extension*)
...
PiperOrigin-RevId: 601494260
10 months ago
Eric Salo
07f784a2f3
upb: tag _upb_Message_GetOrCreateExtension() as UPB_PRIVATE()
...
PiperOrigin-RevId: 600653849
10 months ago
Eric Salo
373ffa6622
upb: tag _upb_Message_Getext() as UPB_PRIVATE()
...
PiperOrigin-RevId: 600639423
10 months ago
Eric Salo
72275ded70
upb: move upb_Message definition back into upb/message/
...
PiperOrigin-RevId: 598741329
11 months ago
Eric Salo
5c5f092606
upb: implement upb_Message
...
PiperOrigin-RevId: 597662892
11 months ago
Eric Salo
c7f44a02eb
upb: finish locking down the upb_Array internals
...
PiperOrigin-RevId: 597629658
11 months ago
Marcel Hlopko
36d344b63f
Automated rollback of commit 0ce457f6e7
.
...
PiperOrigin-RevId: 597327159
11 months ago
Eric Salo
b0d5ed8b08
upb: normalize some more function names
...
PiperOrigin-RevId: 597279852
11 months ago
Eric Salo
c026907a5d
upb: replace public universal hazzer with non-universal hazzers
...
PiperOrigin-RevId: 597126288
11 months ago
Protobuf Team Bot
0ce457f6e7
Adds mutable extension accessors to the codegen for upb C and adds a `::protos::MutableExtension` method to upb C++ for getting a mutable extension.
...
PiperOrigin-RevId: 597088960
11 months ago
Eric Salo
facf959a78
upb: tag upb_Array.data as UPB_ONLYBITS()
...
PiperOrigin-RevId: 597019522
11 months ago
Eric Salo
87618fcbdd
upb: remove duplicate typedef for upb_TaggedMessagePtr
...
PiperOrigin-RevId: 596706308
11 months ago
Eric Salo
c02f943f1a
upb: distinguish between fields and extensions in the public clear() accessors
...
PiperOrigin-RevId: 596588385
11 months ago
Eric Salo
4ba7d27201
upb: implement _upb_Message_ClearOneofCase()
...
PiperOrigin-RevId: 595018281
11 months ago
Eric Salo
f1b8f477d7
upb: factor out message internal data pointers
...
PiperOrigin-RevId: 594654099
11 months ago
Eric Salo
f0cf0b653c
upb: clean up and consolidate the upb/message/ build targets
...
PiperOrigin-RevId: 594514934
11 months ago
Eric Salo
7e1fd68667
upb: clean up some of the includes in upb/message/
...
PiperOrigin-RevId: 594135760
11 months ago
Eric Salo
cdb078275d
upb: add more functions to bits/mini_table_field.h
...
PiperOrigin-RevId: 592847506
12 months ago
Eric Salo
de7f589d44
upb: eliminate :mini_table_internal
...
PiperOrigin-RevId: 592392732
12 months ago
Eric Salo
1587fefee7
upb: simplify upb_Map_Insert() down to upb_Map_Set() where possible
...
PiperOrigin-RevId: 592107014
12 months ago
Eric Salo
121896da15
upb: add upb_Message_ExtensionByIndex()
...
PiperOrigin-RevId: 592091162
12 months ago
Eric Salo
1f67b8dfe1
upb: tag upb_MiniTableField:offset as UPB_ONLYBITS()
...
PiperOrigin-RevId: 592081461
12 months ago
Eric Salo
5b7bafc60e
upb: upb_Message_Extension -> upb_Extension
...
PiperOrigin-RevId: 592075816
12 months ago
Eric Salo
a4a98bdcc0
upb: tag upb_Array.size as UPB_ONLYBITS()
...
PiperOrigin-RevId: 592035282
12 months ago
Eric Salo
088fee7f28
upb: implement upb_Message_FindExtensionByNumber()
...
PiperOrigin-RevId: 590420044
12 months ago