Commit 9c6ad21
committed
Add implementation for computing the required bytes to encode a message
This commit introduces a new API which computes the required bytes to
encode a message without actually serializing a message. By extension,
this API is meant to be used as a cornerstone for implementing #2075.
Signed-off-by: George Papadopoulos <[email protected]>1 parent 694e2f7 commit 9c6ad21
File tree
8 files changed
+1200
-0
lines changed- formats/protobuf
- api
- commonMain/src/kotlinx/serialization/protobuf
- jsMain/src/kotlinx/serialization/protobuf
- jvmMain/src/kotlinx/serialization/protobuf
- jvmTest/src/kotlinx/serialization/protobuf
- nativeMain/src/kotlinx/serialization/protobuf
- testProto
8 files changed
+1200
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| |||
Lines changed: 643 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments