Code size analysis#
pw_cobs: Consistent Overhead Byte Stuffing (COBS) codec and zero-copy frame streamer
pw_cobs is designed for small Flash and RAM footprints on microcontrollers.
The table below shows the incremental Flash footprint of:
In-place EncodeBuffer (EncodeBuffer and EncodeInPlace).
Streaming COBS Decoder (Decoder).
All COBS primitives combined.
Label |
Segment |
Delta |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
One-shot COBS encode and decode |
FLASH
|
+1,200 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
In-place EncodeBuffer |
FLASH
|
+1,104 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Streaming COBS Decoder |
FLASH
|
+480 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
All COBS primitives combined |
FLASH
|
+1,680 |