Comprehensive Guide for Developers: Features, Integration, and API Reference
Represents a read stream for reading data. More...
#include <pdfsdk/cxx/read_stream.h>
Public Member Functions | |
| size_t | Read (void *buffer, size_t nbytes) |
| Reads data from the stream into the specified buffer. | |
| int | ReadChar () |
| std::string | ReadAll () |
| Reads all data from the stream and returns it as a string. | |
| void | Close () |
| Closes the read stream. | |
| ReadStream (PDReadStream handle, bool adopt=false) noexcept | |
| ReadStream (const ReadStream &rhs) noexcept | |
| ReadStream & | operator= (const ReadStream &rhs) noexcept |
| ReadStream (ReadStream &&rhs) noexcept | |
| ReadStream & | operator= (ReadStream &&rhs) noexcept |
Represents a read stream for reading data.
| size_t PDF::ReadStream::Read | ( | void * | buffer, |
| size_t | nbytes ) |
Reads data from the stream into the specified buffer.
| buffer | The buffer to read the data into. |
| nbytes | The size of the buffer. |
|
inline |
Reads all data from the stream and returns it as a string.
| int PDF::ReadStream::ReadChar | ( | ) |
Reads a single character from the stream.