Botan
1.10.9
|
#include <unix_cmd.h>
Public Member Functions | |
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 215 of file unix_cmd.cpp.
References Botan::split_on().
Botan::DataSource_Command::~DataSource_Command | ( | ) |
DataSource_Command Destructor
Definition at line 233 of file unix_cmd.cpp.
References end_of_data().
|
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.
References n, and Botan::DataSource::read_byte().
|
virtual |
Check if we reached EOF
Implements Botan::DataSource.
Definition at line 105 of file unix_cmd.cpp.
Referenced by peek(), Botan::Unix_EntropySource::poll(), read(), and ~DataSource_Command().
int Botan::DataSource_Command::fd | ( | ) | const |
Return the Unix file descriptor of the pipe
Definition at line 113 of file unix_cmd.cpp.
|
virtual |
Return a human-readable ID for this stream
Reimplemented from Botan::DataSource.
Definition at line 123 of file unix_cmd.cpp.
|
virtual |
Peek at the pipe contents
Implements Botan::DataSource.
Definition at line 95 of file unix_cmd.cpp.
References end_of_data().
|
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 end_of_data().
Referenced by Botan::Unix_EntropySource::poll().
|
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(), Botan::DataSource::discard_next(), Botan::BER_Decoder::discard_remaining(), Botan::PGP_decode(), and Botan::BER_Decoder::raw_bytes().