8 #include <botan/pipe.h>
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()))
size_t read(byte output[], size_t length)
void write(const byte in[], size_t length)
int operator>>(int fd, Pipe &pipe)
size_t remaining(message_id msg=DEFAULT_MESSAGE) const
int operator<<(int fd, Pipe &pipe)