Skip to content

Commit 121fdaa

Browse files
eamonnmcmanuscopybara-github
authored andcommitted
Expose the upb_ByteSize function to upb clients. Note that the current naive implementation is no more efficient than serializing the message yourself and noting the resulting size.
PiperOrigin-RevId: 729190911
1 parent d801cbd commit 121fdaa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

upb/BUILD

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,12 @@ alias(
203203
visibility = ["//visibility:public"],
204204
)
205205

206+
alias(
207+
name = "wire_byte_size",
208+
actual = "//upb/wire:byte_size",
209+
visibility = ["//upb:friends"],
210+
)
211+
206212
alias(
207213
name = "wire_reader",
208214
actual = "//upb/wire:reader",

0 commit comments

Comments
 (0)