File stream.
More...
#include <dp_intl/file_stream.h>
Inherits dp::intl::Stream.
◆ FileStream() [1/3]
| dp::intl::FileStream::FileStream |
( |
const std::filesystem::path & | path | ) |
|
|
explicit |
◆ ~FileStream()
| dp::intl::FileStream::~FileStream |
( |
| ) |
|
◆ FileStream() [2/3]
| dp::intl::FileStream::FileStream |
( |
const FileStream & | | ) |
|
|
delete |
◆ FileStream() [3/3]
| dp::intl::FileStream::FileStream |
( |
FileStream && | | ) |
|
|
delete |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ readSome()
| std::size_t dp::intl::FileStream::readSome |
( |
void * | dst, |
|
|
std::size_t | dstSize ) |
|
overridevirtual |
Read up to dstSize bytes from the stream and advance the stream position by the number of bytes read.
- Returns
- The number of bytes read, which can be less than dstSize if the end of the stream is reached.
- Exceptions
-
Implements dp::intl::Stream.
◆ setPosition()
| void dp::intl::FileStream::setPosition |
( |
std::int64_t | newPosition | ) |
|
|
overridevirtual |
Set the stream position for the next read operation.
newPosition is relative to the beginning of the stream. dp_intl will never call this method with a negative newPosition.
- Exceptions
-
Implements dp::intl::Stream.
The documentation for this class was generated from the following file: