Commit | Line | Data |
---|---|---|
0b9614ad FD |
1 | /* |
2 | * Copyright (c) 2022 Francis Deslauriers <francis.deslauriers@efficios.com> | |
3 | * | |
4 | * SPDX-License-Identifier: MIT | |
5 | */ | |
6 | ||
ae2be88d SM |
7 | #ifndef BABELTRACE_CPP_COMMON_BT2C_FILE_UTILS_HPP |
8 | #define BABELTRACE_CPP_COMMON_BT2C_FILE_UTILS_HPP | |
0b9614ad FD |
9 | |
10 | #include <cstdint> | |
11 | #include <vector> | |
12 | ||
13 | namespace bt2c { | |
14 | ||
15 | /* | |
16 | * Returns a vector of all the bytes contained in `path`. | |
17 | */ | |
18 | std::vector<std::uint8_t> dataFromFile(const char *path); | |
19 | ||
20 | } /* namespace bt2c */ | |
21 | ||
ae2be88d | 22 | #endif /* BABELTRACE_CPP_COMMON_BT2C_FILE_UTILS_HPP */ |