8 #include <botan/pipe.h>
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);
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)