18#ifndef __FPSDK_COMMON_PATH_HPP__
19#define __FPSDK_COMMON_PATH_HPP__
73 bool Open(
const std::string& path);
87 bool Write(
const std::vector<uint8_t>& data);
96 bool Write(
const uint8_t* data,
const std::size_t size);
100 std::unique_ptr<std::ostream> fh_;
bool Open(const std::string &path)
Open output file for writing.
bool Write(const uint8_t *data, const std::size_t size)
Write data to file.
void Close()
Close output file.
bool Write(const std::vector< uint8_t > &data)
Write data to file.
bool PathExists(const std::string &path)
Check if path exists.
std::size_t FileSize(const std::string &path)
Get file size.