8 #ifndef INCLUDE_MOLASSEMBLER_IO_BINARY_H
9 #define INCLUDE_MOLASSEMBLER_IO_BINARY_H
17 namespace Molassembler {
26 using BinaryType = std::vector<std::uint8_t>;
29 static bool canRead(
const std::string& filename);
36 const std::string& filename,
37 const BinaryType& binary
44 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:25