10#include <botan/mem_ops.h>
21 while(stream.good() && pipe.
remaining()) {
22 const size_t got = pipe.
read(buffer.data(), buffer.size());
36 while(stream.good()) {
38 const size_t got =
static_cast<size_t>(stream.gcount());
39 pipe.
write(buffer.data(), got);
41 if(stream.bad() || (stream.fail() && !stream.eof())) {
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)
const char * cast_uint8_ptr_to_char(const uint8_t *b)
std::vector< T, secure_allocator< T > > secure_vector