#include <cpio.h>
Public Member Functions | |
virtual | ~input_cpio () |
input_cpio (input &deeper) | |
nstring | name () |
long | length () |
long | read_inner (void *data, size_t nbytes) |
long | ftell_inner () |
bool | is_remote () const |
input | child (nstring &name) |
Private Member Functions | |
long | hex8 () |
int | hex_digit (bool &arg) |
nstring | get_name (long len) |
void | padding () |
input_cpio () | |
input_cpio (const input_cpio &arg) | |
input_cpio & | operator= (const input_cpio &arg) |
Private Attributes | |
input | deeper |
Definition at line 28 of file cpio.h.
virtual input_cpio::~input_cpio | ( | ) | [virtual] |
The destructor.
input_cpio::input_cpio | ( | input & | deeper | ) |
input_cpio::input_cpio | ( | ) | [private] |
The default constructor. Do not use.
input_cpio::input_cpio | ( | const input_cpio & | arg | ) | [private] |
The copy constructor. Do not use.
nstring input_cpio::name | ( | ) | [virtual] |
long input_cpio::length | ( | ) | [virtual] |
long input_cpio::read_inner | ( | void * | data, | |
size_t | nbytes | |||
) | [virtual] |
The read_inner method is used to read unbuffered data from the given input stream. At most nbytes bytes will be read into data. The number of bytes actually read will be returned. At end-of-file, a value <= 0 will be returned, and data will be unchanged. All file read errors or format errors are fatal, and will cause the method to not return.
data | Where to put the results of the read. | |
nbytes | The maximum number of bytes to read. |
Implements input_ty.
long input_cpio::ftell_inner | ( | ) | [virtual] |
bool input_cpio::is_remote | ( | ) | const [virtual] |
The child method is used to obtain an input which may be read to obtain the data of a member of the CPIO archive.
If there are no more members, a closed input will be returned. Use the input::is_open() method to work this out.
long input_cpio::hex8 | ( | ) | [private] |
The hex8 method is used to obtain an eight digit hexadecimal number from the input.
int input_cpio::hex_digit | ( | bool & | arg | ) | [private] |
The hex_digit method is used to obtain a hexadecimal digit from the input.
nstring input_cpio::get_name | ( | long | len | ) | [private] |
The get_name method is used to extract the archive name from the deeper input.
len | The length of the name, not including the terminating NUL |
void input_cpio::padding | ( | ) | [private] |
The padding method is used advance to the next 4-byte boundary, if necessary.
input_cpio& input_cpio::operator= | ( | const input_cpio & | arg | ) | [private] |
The assignment operator. Do not use.
input input_cpio::deeper [private] |