stream_util.h File Reference
#include <istream>
#include <cstddef>
#include <vector>
#include <cstring>
#include "interop/util/exception.h"
#include "interop/io/stream_exceptions.h"
#include "interop/util/lexical_cast.h"
#include "interop/util/cstdint.h"
#include "interop/io/format/stream_membuf.h"

Go to the source code of this file.

Namespaces

 illumina
 
 illumina::interop
 
 illumina::interop::io
 

Functions

template<class T >
void read_binary (std::istream &in, T *buffer, const size_t n)
 
template<class T >
void read_binary (std::istream &in, T &buffer)
 
template<class T >
void read_binary (char *&in, T *buffer, const size_t n)
 
template<class T >
void read_binary (char *&in, T &buffer)
 
template<class T >
std::streamsize read_binary_with_count (std::istream &in, T &buffer)
 
template<class T >
std::streamsize read_binary_with_count (char *&in, T &buffer)
 
template<class T >
read_binary (std::istream &in)
 
template<class T >
void read_binary (std::istream &in, std::vector< T > &buffer, const size_t n)
 
template<class T >
void read_binary (std::istream &in, std::vector< T > &buffer)
 
void read_binary (std::istream &in, std::string &str, const std::string &default_val)
 
template<class T >
void write_binary (std::ostream &out, const T *buffer, const size_t n)
 
template<class T >
void write_binary (std::ostream &out, const T &buffer)
 
template<class T >
void write_binary (std::ostream &out, const std::vector< T > &buffer, const size_t n)
 
template<class T >
void write_binary (std::ostream &out, const std::vector< T > &buffer)
 
void write_binary (std::ostream &out, const std::string &str)
 
std::streamsize scount (std::istream &in)
 
std::streamsize scount (std::ostream &out)
 

Detailed Description

Stream utility functions for reading/writing binary data

Date
9/8/15
Version
1.0