8 #ifndef INCLUDE_MOLASSEMBLER_IO_BINARY_H
9 #define INCLUDE_MOLASSEMBLER_IO_BINARY_H
18 namespace Molassembler {
27 using BinaryType = std::vector<std::uint8_t>;
30 static bool canRead(
const std::string& filename);
37 const std::string& filename,
38 const BinaryType& binary
45 static BinaryType
read(
const std::string& filename);
static void write(const std::string &filename, const BinaryType &binary)
Writes binary to a file.
static bool canRead(const std::string &filename)
Checks whether the file extension is readable.
static BinaryType read(const std::string &filename)
Reads binary from a file.
Binary file IO.
Definition: BinaryHandler.h:26