using fildesbuf = basic_fildesbuf< char >Alias to basic_fildesbuf<char>.
template <class Ch, class Tr = std::char_traits<Ch>, class Fd = sys::fildes> class sys::basic_fildesbuf
Stream buffer that writes and reads from file descriptor.
int.
public virtual std::basic_streambuf< Ch, std::char_traits< Ch > >available() const -> std::streamsizeReturns the number of available bytes in get buffer.
remaining() const -> std::streamsizeReturns the number of remaining bytes in put buffer.
dirty() const -> boolReturns true, if put buffer is non-empty.
swap(basic_fildesbuf & rhs) -> void
Swap with rhs.
compact() -> voidCompact buffer.
close() -> voidClose file descriptor.
fd() -> fd_type &Get file descriptor.
fd() const -> const fd_type &Get file descriptor.
setfd(fd_type && rhs) -> voidSet file descriptor.
pubfill() -> std::streamsizeFill get area from file descriptor.
pubflush() -> std::streamsizeFlush put area contents to file descriptor.
sync() -> intOverrides std::streambuf::sync.
xsputn(const char_type * s, std::streamsize n) -> std::streamsizeOverrides std::streambuf::xsputn.
xsgetn(char_type * s, std::streamsize n) -> std::streamsizeOverrides std::streambuf::xsgetn.
underflow() -> int_typeOverrides std::streambuf::underflow.
basic_fildesbuf(fd_type && fd, size_type gbufsize, size_type pbufsize)
Construct the buffer with file descriptor fd, get area size gbufsize and put area size pbufsize.
basic_fildesbuf(fd_type && fd, size_type bufsize)
Construct the buffer with file descriptor fd and get and put area size equal to bufsize.
basic_fildesbuf(fd_type && fd)explicit
Construct the buffer with file descriptor fd.
basic_fildesbuf()template <class Ch, class Tr, class Fd> swap(basic_fildesbuf< Ch, Tr, Fd > & lhs, basic_fildesbuf< Ch, Tr, Fd > & rhs) -> voidOverload of std::swap for basic_fildesbuf.