cpp-common: add `dataFromFile()`
[babeltrace.git] / src / cpp-common / bt2c / file-utils.hpp
CommitLineData
0b9614ad
FD
1/*
2 * Copyright (c) 2022 Francis Deslauriers <francis.deslauriers@efficios.com>
3 *
4 * SPDX-License-Identifier: MIT
5 */
6
7#ifndef BABELTRACE_CPP_COMMON_FILE_UTILS_HPP
8#define BABELTRACE_CPP_COMMON_FILE_UTILS_HPP
9
10#include <cstdint>
11#include <vector>
12
13namespace bt2c {
14
15/*
16 * Returns a vector of all the bytes contained in `path`.
17 */
18std::vector<std::uint8_t> dataFromFile(const char *path);
19
20} /* namespace bt2c */
21
22#endif /* BABELTRACE_CPP_COMMON_FILE_UTILS_HPP */
This page took 0.022775 seconds and 4 git commands to generate.