mf
Media Framework
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Namespaces | Functions | Variables
io.cc File Reference
#include "io.h"
#include <istream>
#include <ostream>
#include <fstream>
#include <stdexcept>
#include <cstdint>
#include <type_traits>
#include <cctype>

Namespaces

 mf
 

Functions

line_delimitor mf::detect_line_delimitor (std::istream &, std::size_t max_offset=512)
 Detects line delimitor used in given file. More...
 
void mf::read_line (std::istream &str, std::string &line, line_delimitor ld)
 
void mf::skip_line (std::istream &str, line_delimitor ld)
 
void mf::write_line (std::ostream &str, const std::string &line, line_delimitor ld)
 
void mf::end_line (std::ostream &str, line_delimitor ld)
 
void mf::flip_endianness (byte *data, std::size_t sz)
 
std::size_t mf::file_size (const std::string &filename)
 
std::size_t mf::file_size (std::ifstream &stream)
 

Variables

const line_delimitor mf::default_line_delimitor = line_delimitor::LF
 
const bool mf::host_has_iec559_float
 
const bool mf::host_is_little_endian = check_host_little_endian_()