mirror of
https://fuchsia.googlesource.com/third_party/pigweed.googlesource.com/pigweed/pigweed
synced 2024-09-20 13:51:05 +00:00
5ea3340c28
Updates most, if not all, deviations from our non-type template arg style guide. Change-Id: I275639a7c15e38e0db9d198a6802f9cd5bb9cf89 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/39661 Reviewed-by: Ewout van Bekkum <ewout@google.com> Reviewed-by: Wyatt Hepler <hepler@google.com> Pigweed-Auto-Submit: Ewout van Bekkum <ewout@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
45 lines
957 B
ReStructuredText
45 lines
957 B
ReStructuredText
.. _module-pw_bytes:
|
|
|
|
---------
|
|
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_bytes/array.h
|
|
----------------
|
|
Functions for working with byte arrays, primarily for building fixed-size byte
|
|
arrays at compile time.
|
|
|
|
pw_bytes/byte_builder.h
|
|
-----------------------
|
|
.. cpp:class:: ByteBuilder
|
|
|
|
``ByteBuilder`` is a class that facilitates building or reading arrays of
|
|
bytes in a fixed-size buffer. ByteBuilder handles reading and writing integers
|
|
with varying endianness.
|
|
|
|
.. cpp:class:: template <size_t kMaxSize> ByteBuffer
|
|
|
|
``ByteBuilder`` with an internally allocated buffer.
|
|
|
|
Size report: using ByteBuffer
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
.. include:: byte_builder_size_report
|
|
|
|
pw_bytes/endian.h
|
|
-----------------
|
|
Functions for converting the endianness of integral values.
|