pw_bytes: Added an ordered put method for values
Added functionality to insert values to the buffer in the endianness
order as specified by the user.
Change-Id: Ie33ac7a38a35cdd1cfdb2952233d13f09242cc8c
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/12472
Reviewed-by: Wyatt Hepler <hepler@google.com>
Commit-Queue: Shane Gomindes <shaneajg@google.com>
diff --git a/pw_bytes/docs.rst b/pw_bytes/docs.rst
index 83e9f1b..d67a8df 100644
--- a/pw_bytes/docs.rst
+++ b/pw_bytes/docs.rst
@@ -27,6 +27,13 @@
ByteBuilder is a utility class which facilitates the creation and
building of formatted bytes in a fixed-size buffer.
+Utilities for building byte arrays at run time
+------------------------------------------------
+-``PutInt8``, ``PutUInt8``: Inserts 8-bit integers.
+-``PutInt16``, ``PutInt16``: Inserts 16-bit integers in little/big endian.
+-``PutInt32``, ``PutUInt32``: Inserts 32-bit integers in little/big endian.
+-``PutInt64``, ``PutInt64``: Inserts 64-bit integers in little/big endian.
+
Future work
^^^^^^^^^^^
-* Adding Endianness
+- Utilities for building byte arrays at compile time.