commit | d589b1b4eecd07577902c764a16d800df66b7d6f | [log] [tgz] |
---|---|---|
author | William A. Kennington III <wak@google.com> | Sun Dec 24 10:39:30 2023 -0800 |
committer | William A. Kennington III <wak@google.com> | Wed Jan 10 13:26:05 2024 -0800 |
tree | b6f6df5ab785c752c66dc23f969e2a4f7ee2ee12 | |
parent | 8a512d0eb5d6d451295bab42d5b276e81b7d72cb [diff] |
fd/ops: Add readall() This creates a dynamic buffer of all of the data in read out of the file starting at the current fd position. Generally this is used to reliably read small files for convenience. Larger reads should still chunk if the entire file does not need to reside in memory. Change-Id: I722de2cbd66370a222763602248bc4912ada25cf Signed-off-by: William A. Kennington III <wak@google.com>
stdplus is a c++ project containing commonly used classes and functions for the Linux platform. Note the goals of this project are to implement only the minimum set of features needed by the OpenBMC project and other users. You may find the included set of functions currently quite sparse.
This project provides the following primitives:
Test cases require google{test,mock}, valgrind, and lcov. It also requires the Meson Build System which can be installed following the instructions at mesonbuild.com.
For a standard release build, you want something like:
meson setup -Dexamples=false -Dtests=disabled builddir ninja -C builddir ninja -C builddir install
For a test / debug build, a typical configuration is
meson setup -Dtests=enabled builddir meson test -C builddir