std1.0.0-beta-7 SafeC docs

std :: io_traits

Trait std::Reader

#include <std/io_traits.h> source

trait Reader {
    long long read([]unsigned char buf);
}

Required methods

ยงlong long read([]unsigned char buf)source

Reads at most buf.len bytes into buf. Returns the count read, 0 at end of stream, -1 on error. May return fewer than buf.len before the end.