Molassembler  3.0.0
Molecule graph and conformer library
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Scine::Molassembler::IO::BinaryHandler Struct Reference

Binary file IO. More...

#include <BinaryHandler.h>

Public Types

using BinaryType = std::vector< std::uint8_t >
 

Static Public Member Functions

static bool canRead (const std::string &filename)
 Checks whether the file extension is readable.
 
static void write (const std::string &filename, const BinaryType &binary)
 Writes binary to a file. More...
 
static BinaryType read (const std::string &filename)
 Reads binary from a file. More...
 

Detailed Description

Binary file IO.

Member Function Documentation

static BinaryType Scine::Molassembler::IO::BinaryHandler::read ( const std::string &  filename)
static

Reads binary from a file.

Complexity \(\Theta(N)\)

static void Scine::Molassembler::IO::BinaryHandler::write ( const std::string &  filename,
const BinaryType &  binary 
)
static

Writes binary to a file.

Complexity \(\Theta(N)\)


The documentation for this struct was generated from the following file: