template <class Ch, class Tr = std::char_traits<Ch>, class Fd = sys::fildes> class sys::basic_fdstream
Input/output stream that reads/writes to/from file descriptor.
public std::basic_iostream< Ch, std::char_traits< Ch > >using fd_type = fildesbuf_type::fd_type
File descriptor type. Can be a wrapper class or int.
fdbuf() -> fildesbuf_type &Get stream buffer.
fdbuf() const -> const fildesbuf_type &Get stream buffer.
fd() -> fd_type &Get file descriptor.
fd() const -> const fd_type &Get file descriptor.
close() -> voidClose the stream.
open(fd_type && rhs) -> void
Open the stream with file descriptor rhs.
basic_fdstream(Fd && fd)explicit
Construct the stream with file descriptor fd.
template <class Ch, class Tr = std::char_traits<Ch>, class Fd = sys::fildes> class sys::basic_ofdstream
Output stream that writes to file descriptor.
public std::basic_ostream< Ch, std::char_traits< Ch > >using fd_type = fildesbuf_type::fd_type
File descriptor type. Can be a wrapper class or int.
fdbuf() -> fildesbuf_type &Get stream buffer.
fdbuf() const -> const fildesbuf_type &Get stream buffer.
fd() -> fd_type &Get file descriptor.
fd() const -> const fd_type &Get file descriptor.
close() -> voidClose the stream.
open(fd_type && rhs) -> void
Open the stream with file descriptor rhs.
basic_ofdstream(Fd && fd)explicit
Construct the stream with file descriptor fd.
basic_ofdstream()template <class Ch, class Tr = std::char_traits<Ch>, class Fd = sys::fildes> class sys::basic_ifdstream
Input stream that reads from file descriptor.
int.
public std::basic_istream< Ch, std::char_traits< Ch > >fdbuf() -> fildesbuf_type &Get stream buffer.
fdbuf() const -> const fildesbuf_type &Get stream buffer.
fd() -> fd_type &Get file descriptor.
fd() const -> const fd_type &Get file descriptor.
close() -> voidClose the stream.
open(fd_type && rhs) -> void
Open the stream with file descriptor rhs.
basic_ifdstream(Fd && fd)explicit
Construct the stream with file descriptor fd.