Wyatt Hepler | f9fb90f | 2020-09-30 18:59:33 -0700 | [diff] [blame^] | 1 | .. _module-pw_protobuf-decoding: |
Alexei Frolov | 9c2ed46 | 2020-01-13 15:35:42 -0800 | [diff] [blame] | 2 | |
Alexei Frolov | 4a257c1 | 2020-03-02 14:09:42 -0800 | [diff] [blame] | 3 | -------- |
| 4 | Decoding |
| 5 | -------- |
Alexei Frolov | 9c2ed46 | 2020-01-13 15:35:42 -0800 | [diff] [blame] | 6 | |
| 7 | Size report |
| 8 | =========== |
| 9 | |
| 10 | Full size report |
| 11 | ^^^^^^^^^^^^^^^^ |
| 12 | |
| 13 | This report demonstrates the size of using the entire decoder with all of its |
| 14 | decode methods and a decode callback for a proto message containing each of the |
| 15 | protobuf field types. |
| 16 | |
Alexei Frolov | 725b85b | 2020-03-19 13:37:10 -0700 | [diff] [blame] | 17 | .. include:: size_report/decoder_full |
Alexei Frolov | 9c2ed46 | 2020-01-13 15:35:42 -0800 | [diff] [blame] | 18 | |
| 19 | |
| 20 | Incremental size report |
| 21 | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 22 | |
| 23 | This report is generated using the full report as a base and adding some int32 |
| 24 | fields to the decode callback to demonstrate the incremental cost of decoding |
| 25 | fields in a message. |
| 26 | |
Alexei Frolov | 725b85b | 2020-03-19 13:37:10 -0700 | [diff] [blame] | 27 | .. include:: size_report/decoder_incremental |