Abstract interface for providing a stream of bytes to the EXIF parser.
More...
|
| virtual const uint8_t * | GetBuffer (unsigned desiredLength)=0 |
| | Returns a pointer to a contiguous buffer of the requested size at the current position.
|
| virtual bool | IsValid () const =0 |
| | Checks whether the stream is in a valid, readable state.
|
| virtual bool | SkipBuffer (unsigned desiredLength)=0 |
| | Advances the current stream position by the specified number of bytes.
|
Abstract interface for providing a stream of bytes to the EXIF parser.
Implementations supply sequential access to JPEG image data so that EXIFInfo can extract metadata without requiring the entire file in memory.
Definition at line 36 of file TinyExif.h.
◆ GetBuffer()
| virtual const uint8_t * EXIFStream::GetBuffer |
( |
unsigned | desiredLength | ) |
|
|
pure virtual |
Returns a pointer to a contiguous buffer of the requested size at the current position.
- Parameters
-
| [in] | desiredLength | The number of bytes requested. |
- Returns
- Pointer to the beginning of the buffer, or nullptr if insufficient data remains.
◆ IsValid()
| virtual bool EXIFStream::IsValid |
( |
| ) |
const |
|
pure virtual |
Checks whether the stream is in a valid, readable state.
- Returns
- True if the stream is valid and data can be read; false otherwise.
◆ SkipBuffer()
| virtual bool EXIFStream::SkipBuffer |
( |
unsigned | desiredLength | ) |
|
|
pure virtual |
Advances the current stream position by the specified number of bytes.
- Parameters
-
| [in] | desiredLength | The number of bytes to skip forward. |
- Returns
- True if the skip succeeded; false if the stream ends before the desired length.
The documentation for this class was generated from the following file: