Traits that abstract read and write operations for stream buffers.
in_avail(T & buf) -> std::streamsize
Check how many bytes are available for reading in buffer buf.
is_blocking(const T &) -> boolCheck if the source/sink is blocking.
read(T & buf, char_type * s, std::streamsize n) -> std::streamsize
Read n bytes to array pointed by s from buffer buf.
write(T & buf, const char_type * s, std::streamsize n) -> std::streamsize
Write n bytes from array pointed by s to buffer buf.