nw::istream_read

template<typename T, typename U>
std::istream &nw::istream_read(std::istream &stream, T *data, U size)

Reads from a stream into an arbitrary pointer of type T