Boost.Buffers

Boost.Buffers is a portable, low-level C++ library which provides containers and algorithms for describing contiguous buffers of arbitrary bytes.

Boost.Buffers offers these features:

  • Require only C++11

  • Works without exceptions

  • Fast compilation, few templates

  • Does not require Asio

Requirements

  • Requires Boost and a compiler supporting at least C++11

  • Aliases for standard types use their Boost equivalents

  • Link to a built static or dynamic Boost library, or use header-only (see below)

  • Supports -fno-exceptions, detected automatically

Header-Only

To use the library as header-only; that is, to eliminate the requirement to link a program to a static or dynamic Boost.URL library, simply place the following line in exactly one source file in your project.

#include <boost/buffers/src.hpp>

Embedded

Boost.Buffers works great on embedded devices. It is designed to work without exceptions if desired.

Tested Compilers

Boost.Buffers has been tested with the following compilers:

  • clang: 3.8, 4, 5, 6, 7, 8, 9, 10, 11, 12

  • gcc: 4.8, 4.9, 5, 6, 7, 8, 9, 10, 11

  • msvc: 14.1, 14.2, 14.3

Quality Assurance

The development infrastructure for the library includes these per-commit analyses:

  • Coverage reports

  • Compilation and tests on Drone.io and GitHub Actions

Credits

This library is based on concepts and code developed by Christopher Kohlhoff and published in Boost.Asio.