mirror of
https://fuchsia.googlesource.com/third_party/pigweed.googlesource.com/pigweed/pigweed
synced 2024-09-21 06:12:09 +00:00
f20ef8ef4a
Change-Id: I224e96c88288c890686cb91eac354cf30dbcad4f Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/13182 Commit-Queue: Shane Gomindes <shaneajg@google.com> Reviewed-by: Wyatt Hepler <hepler@google.com>
44 lines
1003 B
ReStructuredText
44 lines
1003 B
ReStructuredText
.. _chapter-pw-bytes:
|
|
|
|
.. default-domain:: cpp
|
|
|
|
.. highlight:: sh
|
|
|
|
---------
|
|
pw_bytes
|
|
---------
|
|
pw_bytes is a collection of utilities for manipulating binary data.
|
|
|
|
Compatibility
|
|
=============
|
|
C++17
|
|
|
|
Dependencies
|
|
============
|
|
* ``pw_preprocessor``
|
|
* ``pw_status``
|
|
* ``pw_span``
|
|
|
|
Features
|
|
========
|
|
|
|
pw::ByteBuilder
|
|
-----------------
|
|
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.
|
|
|
|
Size report: using ByteBuffer
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
.. include:: byte_builder_size_report
|
|
|
|
Future work
|
|
^^^^^^^^^^^
|
|
- Utilities for building byte arrays at compile time.
|