65 static std::istream & Read(std::istream & is, T & val)
74 static std::ostream & Write(std::ostream & os,
const T & val)
83 static ssize_t Read(
int fd, T & val)
92 static ssize_t Write(
int fd,
const T & val)
100 template <
typename T>
101 static size_t Read(FILE *f, T & val)
109 template <
typename T>
110 static size_t Write(FILE *f,
const T & val)
118 template <
typename T>
119 static uint64_t StreamedLength(
const T & val)
Dwm::DescriptorIO class declaration.
Dwm::FileIO class declaration.
Dwm::IOUtils class declaration and implementation.
Dwm::StreamIO class declaration.
static ssize_t Write(int fd, char c)
Writes c to fd.
static ssize_t Read(int fd, char &c)
Reads c from fd.
static size_t Write(FILE *f, char c)
Writes c to f.
static size_t Read(FILE *f, char &c)
Reads c from f.
static uint64_t StreamedLength(char c)
Returns the number of bytes that would be written if we called Write() for a char.
Definition DwmIOUtils.hh:85
This class is now just a wrapper for DescriptorIO, FileIO, StreamIO and IOUtils.
Definition DwmIO.hh:59
static std::istream & Read(std::istream &is, char &c)
Reads c from is. Returns is.
static std::ostream & Write(std::ostream &os, char c)
Writes c to os. Returns os.