|
|
| WindowReader (EndianType endiantype, std::shared_ptr< Reader > reader, offset_t start_offset, offset_t maximum_size, offset_t displacement=0) |
| |
|
| WindowReader (std::shared_ptr< Reader > reader, offset_t start_offset, offset_t maximum_size, offset_t displacement=0) |
| |
| size_t | Read (void *data, size_t max_count=size_t(-1)) override |
| | Read in as many bytes as possible.
|
| |
| void | Seek (offset_t offset) override |
| | Jump to a specific location in the input stream.
|
| |
| void | Skip (relative_offset_t offset) override |
| | Jump to a distance in the input stream.
|
| |
| void | SeekEnd (relative_offset_t offset=0) override |
| | Jump to end of the input stream.
|
| |
| offset_t | Tell () override |
| | Retrieve the current location.
|
| |
| offset_t | GetImageEnd () override |
| | Returns the last location that can be read.
|
| |
|
OverflowHandlingMode | GetActionOnOverflow () |
| |
|
| Reader (EndianType endiantype) |
| |
|
std::shared_ptr< Reader > | CreateWindow (offset_t new_start_offset, offset_t new_maximum_size=offset_t(-1), offset_t displacement=0) |
| |
|
void | ReadData (size_t count, void *data) |
| | Read in a sequence of bytes.
|
| |
|
void | ReadData (size_t count, std::vector< uint8_t > &data, size_t offset=0) |
| | Read in a sequence of bytes, resize the vector.
|
| |
|
void | ReadData (std::vector< uint8_t > &data, size_t offset=0) |
| | Read in a sequence of bytes, filling the vector.
|
| |
|
std::string | ReadData (size_t count, bool terminate_at_null=false) |
| | Read in a sequence of bytes.
|
| |
|
std::string | ReadUTF16Data (size_t count, bool terminate_at_null=false) |
| | Read in a sequence of 16-bit words.
|
| |
|
template<class T , std::size_t N> |
| void | ReadData (std::array< T, N > &data, size_t offset=0) |
| | Read in a sequence of bytes.
|
| |
|
std::string | ReadASCII (char terminator, size_t maximum=size_t(-1)) |
| | Read an ASCII string up to a terminator.
|
| |
|
std::string | ReadASCIIZ (size_t maximum=size_t(-1)) |
| | Read a zero terminated ASCII string.
|
| |
|
std::string | ReadUTF16Data (const char terminator[2], size_t maximum=size_t(-1)) |
| | Read a string of 16-bit words up to a terminator.
|
| |
|
std::string | ReadUTF16Data (char16_t terminator, size_t maximum, EndianType endiantype) |
| | Read a string of 16-bit words up to a terminator.
|
| |
|
std::string | ReadUTF16Data (char16_t terminator, size_t maximum=size_t(-1)) |
| | Read a string of 16-bit words up to a terminator.
|
| |
|
std::string | ReadUTF16Data (char16_t terminator, EndianType endiantype) |
| | Read a string of 16-bit words up to a terminator.
|
| |
|
std::string | ReadUTF16ZData (size_t maximum=size_t(-1)) |
| | Read a zero terminated string of 16-bit words.
|
| |
|
uint64_t | ReadUnsigned (size_t bytes, EndianType endiantype) |
| | Read an unsigned word.
|
| |
|
uint64_t | ReadUnsigned (size_t bytes) |
| | Read an unsigned word.
|
| |
|
uint64_t | ReadSigned (size_t bytes, EndianType endiantype) |
| | Read a signed word.
|
| |
|
uint64_t | ReadSigned (size_t bytes) |
| | Read a signed word.
|
| |
|
template<typename Clock > |
| Timestamp< Clock > | ReadTimestamp (EndianType endiantype) |
| | Read a date-time value according to some epoch.
|
| |
|
template<typename Clock > |
| Timestamp< Clock > | ReadTimestamp () |
| | Read a date-time value according to some epoch.
|
| |
|
offset_t | GetRemainingCount () |
| | Returns the byte count until the last location that can be read.
|
| |
Reader subclass that restricts access of another Reader to fixed window.