10#include <botan/exceptn.h>
21 size_t got = pipe.
read(buffer.data(), buffer.size());
24 ssize_t ret = ::write(fd, &buffer[position], got);
29 position +=
static_cast<size_t>(ret);
30 got -=
static_cast<size_t>(ret);
42 ssize_t ret = ::read(fd, buffer.data(), buffer.size());
48 pipe.
write(buffer.data(),
static_cast<size_t>(ret));
size_t read(uint8_t output[], size_t length) override
void write(const uint8_t in[], size_t length)
size_t remaining(message_id msg=DEFAULT_MESSAGE) const
#define BOTAN_DEFAULT_BUFFER_SIZE
std::ostream & operator<<(std::ostream &out, const OID &oid)
int operator>>(int fd, Pipe &pipe)
std::vector< T, secure_allocator< T > > secure_vector