Botan
1.10.16
|
#include <unix_cmd.h>
Public Member Functions | |
bool | check_available (size_t n) |
DataSource_Command (const std::string &, const std::vector< std::string > &paths) | |
size_t | discard_next (size_t N) |
bool | end_of_data () const |
int | fd () const |
std::string | id () const |
size_t | peek (byte[], size_t, size_t) const |
size_t | peek_byte (byte &out) const |
size_t | read (byte[], size_t) |
size_t | read_byte (byte &out) |
~DataSource_Command () | |
Command Output DataSource
Definition at line 49 of file unix_cmd.h.
Botan::DataSource_Command::DataSource_Command | ( | const std::string & | prog_and_args, |
const std::vector< std::string > & | paths | ||
) |
DataSource_Command Constructor
Definition at line 220 of file unix_cmd.cpp.
References Botan::split_on().
Botan::DataSource_Command::~DataSource_Command | ( | ) |
DataSource_Command Destructor
Definition at line 238 of file unix_cmd.cpp.
References end_of_data().
|
virtual |
Implements Botan::DataSource.
Definition at line 102 of file unix_cmd.cpp.
|
inherited |
Discard the next N bytes of the data
N | the number of bytes to discard |
Definition at line 35 of file data_src.cpp.
|
virtual |
Check if we reached EOF
Implements Botan::DataSource.
Definition at line 110 of file unix_cmd.cpp.
Referenced by ~DataSource_Command().
int Botan::DataSource_Command::fd | ( | ) | const |
Return the Unix file descriptor of the pipe
Definition at line 118 of file unix_cmd.cpp.
|
virtual |
Return a human-readable ID for this stream
Reimplemented from Botan::DataSource.
Definition at line 128 of file unix_cmd.cpp.
References Botan::CT::select().
|
virtual |
|
inherited |
Peek at one byte.
out | an output byte |
Definition at line 27 of file data_src.cpp.
References Botan::DataSource::peek().
Referenced by Botan::ASN1::maybe_BER().
|
virtual |
Read from the pipe
Implements Botan::DataSource.
Definition at line 63 of file unix_cmd.cpp.
References Botan::CT::select().
|
inherited |
Read one byte.
out | the byte to read to |
Definition at line 19 of file data_src.cpp.
References Botan::DataSource::read().
Referenced by Botan::PEM_Code::decode(), and Botan::PGP_decode().