shaneajg | 9c19db4 | 2020-06-11 15:49:51 -0400 | [diff] [blame] | 1 | .. _chapter-pw-bytes: |
| 2 | |
| 3 | .. default-domain:: cpp |
| 4 | |
| 5 | .. highlight:: sh |
| 6 | |
| 7 | --------- |
| 8 | pw_bytes |
| 9 | --------- |
| 10 | pw_bytes is a collection of utilities for manipulating binary data. |
| 11 | |
| 12 | Compatibility |
| 13 | ============= |
| 14 | C++17 |
| 15 | |
| 16 | Dependencies |
| 17 | ============ |
| 18 | * ``pw_preprocessor`` |
| 19 | * ``pw_status`` |
| 20 | * ``pw_span`` |
| 21 | |
| 22 | Features |
| 23 | ======== |
| 24 | |
| 25 | pw::ByteBuilder |
| 26 | ----------------- |
| 27 | ByteBuilder is a utility class which facilitates the creation and |
| 28 | building of formatted bytes in a fixed-size buffer. |
| 29 | |
shaneajg | 3181d18 | 2020-06-17 20:17:23 -0400 | [diff] [blame^] | 30 | Utilities for building byte arrays at run time |
| 31 | ------------------------------------------------ |
| 32 | -``PutInt8``, ``PutUInt8``: Inserts 8-bit integers. |
| 33 | -``PutInt16``, ``PutInt16``: Inserts 16-bit integers in little/big endian. |
| 34 | -``PutInt32``, ``PutUInt32``: Inserts 32-bit integers in little/big endian. |
| 35 | -``PutInt64``, ``PutInt64``: Inserts 64-bit integers in little/big endian. |
| 36 | |
shaneajg | 9c19db4 | 2020-06-11 15:49:51 -0400 | [diff] [blame] | 37 | Future work |
| 38 | ^^^^^^^^^^^ |
shaneajg | 3181d18 | 2020-06-17 20:17:23 -0400 | [diff] [blame^] | 39 | - Utilities for building byte arrays at compile time. |