std1.0.0-beta-7 SafeC docs

std :: io_traits

Function std::read_exact

#include <std/io_traits.h> source

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).