21 size_t got = pipe.
read(&buffer[0], buffer.
size());
22 stream.write(
reinterpret_cast<const char*
>(&buffer[0]), got);
37 stream.read(
reinterpret_cast<char*
>(&buffer[0]), buffer.
size());
38 pipe.
write(&buffer[0], stream.gcount());
40 if(stream.bad() || (stream.fail() && !stream.eof()))
void write(const byte in[], size_t length)
size_t remaining(message_id msg=DEFAULT_MESSAGE) const
size_t read(byte output[], size_t length)
int operator>>(int fd, Pipe &pipe)
int operator<<(int fd, Pipe &pipe)
Stream_IO_Error(const std::string &err)