blob: d67a8dfea2612f74660b4a9ae0c3bc684b131a7f [file] [log] [blame]
shaneajg9c19db42020-06-11 15:49:51 -04001.. _chapter-pw-bytes:
2
3.. default-domain:: cpp
4
5.. highlight:: sh
6
7---------
8pw_bytes
9---------
10pw_bytes is a collection of utilities for manipulating binary data.
11
12Compatibility
13=============
14C++17
15
16Dependencies
17============
18* ``pw_preprocessor``
19* ``pw_status``
20* ``pw_span``
21
22Features
23========
24
25pw::ByteBuilder
26-----------------
27ByteBuilder is a utility class which facilitates the creation and
28building of formatted bytes in a fixed-size buffer.
29
shaneajg3181d182020-06-17 20:17:23 -040030Utilities 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
shaneajg9c19db42020-06-11 15:49:51 -040037Future work
38^^^^^^^^^^^
shaneajg3181d182020-06-17 20:17:23 -040039- Utilities for building byte arrays at compile time.