NDEVR
API Documentation
TAR::Readerabstract

Abstract base class for sequential byte stream reading. More...

Inheritance diagram for TAR::Reader:
[legend]

Public Member Functions

virtual bool eof () const =0
 Checks whether the end of the stream has been reached.
virtual bool read_exact (u8 *dst, size_t n)=0
 Reads exactly n bytes into the destination buffer.

Detailed Description

Abstract base class for sequential byte stream reading.


Definition at line 28 of file TarReader.h.

Member Function Documentation

◆ eof()

virtual bool TAR::Reader::eof ( ) const
pure virtual

Checks whether the end of the stream has been reached.

Returns
True if at end of stream, false otherwise.

Implemented in TAR::FileReader, and TAR::GzReader.

◆ read_exact()

virtual bool TAR::Reader::read_exact ( u8 * dst,
size_t n )
pure virtual

Reads exactly n bytes into the destination buffer.

Parameters
[in]dstPointer to the destination buffer.
[in]nNumber of bytes to read.
Returns
True if all bytes were successfully read, false otherwise.

Implemented in TAR::FileReader, and TAR::GzReader.

Referenced by TAR::read_block(), and TAR::skip_bytes().


The documentation for this struct was generated from the following file: