9#include <botan/exceptn.h>
22 size_t got = pipe.
read(buffer.data(), buffer.size());
26 ssize_t ret = ::write(fd, &buffer[position], got);
30 position +=
static_cast<size_t>(ret);
31 got -=
static_cast<size_t>(ret);
45 ssize_t ret = ::read(fd, buffer.data(), buffer.size());
50 pipe.
write(buffer.data(),
static_cast<size_t>(ret));
size_t read(uint8_t output[], size_t length) override BOTAN_WARN_UNUSED_RESULT
void write(const uint8_t in[], size_t length)
size_t remaining(message_id msg=DEFAULT_MESSAGE) const BOTAN_WARN_UNUSED_RESULT
int operator>>(int fd, Pipe &pipe)
int operator<<(int fd, Pipe &pipe)
std::vector< T, secure_allocator< T > > secure_vector