std :: io_traits
#include <std/io_traits.h> source
#include <std/io_traits.h>
generic<R: Reader> int read_exact(&R r, []unsigned char buf)
Fills buf completely, looping over short reads. 1 when all buf.len bytes arrived; 0 when the stream ended or failed first (buf then holds what did arrive).