bpf::io::IOutputStream class

Represents an arbitary stream with write capacity

Derived classes

class ByteBuf final
class FileStream final
class IDataOutputStream
class bpf::system::Process::PipeStream final

Constructors, destructors, conversion operators

~IOutputStream() virtual

Public functions

auto Write(const void* buf, fsize bufsize) -> fsize pure virtual

Function documentation

fsize bpf::io::IOutputStream::Write(const void* buf, fsize bufsize) pure virtual

Parameters
buf the buffer with the bytes to write
bufsize the size of the buffer
Returns number of bytes written
Exceptions
IOException in case of system error

Writes bytes to this stream WARNING: When possible the implementation should not buffer