std1.0.0-beta-7 SafeC docs

std :: io_traits

Trait std::Writer

#include <std/io_traits.h> source

trait Writer {
    long long write([]const unsigned char buf);
}

Required methods

ยงlong long write([]const unsigned char buf)source

Writes at most buf.len bytes from buf. Returns the count written (may be fewer), -1 on error.