read_array_helper< ReadType, ValueType, true > Struct Template Reference

#include <map_io.h>

Static Public Member Functions

static std::streamsize read_array_from_stream (std::istream &in, ValueType *vals, const size_t n, const size_t offset=0)
 
static std::streamsize read_array_from_stream (char *&in, ValueType *vals, const size_t n, const size_t offset=0)
 

Detailed Description

template<typename ReadType, typename ValueType>
struct illumina::interop::io::read_array_helper< ReadType, ValueType, true >

Helper to read an array

Specialization for when ReadType and ValueType are the same size

Member Function Documentation

static std::streamsize read_array_from_stream ( std::istream &  in,
ValueType *  vals,
const size_t  n,
const size_t  offset = 0 
)
inlinestatic

Read an array of values of type ReadType from the given input stream

TODO: create more efficient buffered version

Parameters
ininput stream
valsdestination array of values
nnumber of values to read
offsetoffset into the destination array
Returns
number of bytes read from the stream
static std::streamsize read_array_from_stream ( char *&  in,
ValueType *  vals,
const size_t  n,
const size_t  offset = 0 
)
inlinestatic

Read an array of values of type ReadType from the given input stream

TODO: create more efficient buffered version

Parameters
ininput stream
valsdestination array of values
nnumber of values to read
offsetoffset into the destination array
Returns
number of bytes read from the stream

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