commit | 4829c9db9df845e3f5b6d1e491f6b16a6c7ab36c | [log] [tgz] |
---|---|---|
author | William A. Kennington III <wak@google.com> | Sun Dec 24 10:39:43 2023 -0800 |
committer | William A. Kennington III <wak@google.com> | Wed Jan 10 13:26:05 2024 -0800 |
tree | 18dcaf1de91dbc0e73e3e1f1c4e3f4667afbfe51 | |
parent | d589b1b4eecd07577902c764a16d800df66b7d6f [diff] |
fd/ops: Add readAllFixed() This is similar to readAll in that it guarantees to read the file all the way to EOF, but it allows you to provide a fixed buffer space to store the file contents. This is useful if you know the bounds of the file and don't mind preallocating space for them. This is generally the preferred candidate for reading all of a file, as you should know the bounds of the data you would like to read if you are reading the entire thing. Change-Id: I72a9e2fb7ee84d4e37963c8dcdff3e9e351e2339 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