|
dp_intl 1.0.0
Gettext-compatible internationalization library for C++
|
Input stream. More...
#include <dp_intl/stream.h>
Inherited by dp::intl::FileStream.
Public Member Functions | |
| virtual | ~Stream ()=default |
| virtual std::size_t | readSome (void *dst, std::size_t dstSize)=0 |
| Read up to dstSize bytes from the stream and advance the stream position by the number of bytes read. | |
| virtual void | setPosition (std::int64_t newPosition)=0 |
| Set the stream position for the next read operation. | |
Input stream.
Although the class methods use types such as size_t and int64_t, the dp_intl library will never read or position the stream beyond the first 100 megabytes. This means that if the underlying API used for a concrete Stream is limited to 32-bit integer types, you don't need to handle edge cases like integer overflow or wrap-around.
|
virtualdefault |
|
pure virtual |
Read up to dstSize bytes from the stream and advance the stream position by the number of bytes read.
| dp::intl::Error |
Implemented in dp::intl::FileStream.
|
pure virtual |
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.
| dp::intl::Error |
Implemented in dp::intl::FileStream.