9#include <botan/exceptn.h>
22 size_t got = pipe.
read(&buffer[0], buffer.
size());
26 ssize_t ret = write(fd, &buffer[position], got);
44 ssize_t ret = read(fd, &buffer[0], buffer.
size());
48 pipe.
write(&buffer[0], ret);
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)