|
| MemFile () |
| Default constructor. More...
|
|
| MemFile (const void *pData, uint32 nLen) |
| Constructor. More...
|
|
| ~MemFile () |
|
virtual ssize_t | Read (void *pBuffer, ssize_t nSize) |
|
virtual ssize_t | Write (const void *pBuffer, ssize_t nSize) |
|
virtual ssize_t | ReadPos (off_t nPos, void *pBuffer, ssize_t nSize) |
|
virtual ssize_t | WritePos (off_t nPos, const void *pBuffer, ssize_t nSize) |
|
virtual off_t | Seek (off_t nPos, int nMode) |
|
virtual void | SetSize (uint32 nSize) |
| Set the size of the internal buffer. More...
|
|
virtual | ~SeekableIO () |
|
virtual | ~StreamableIO () |
|
- Description:
- This class simulates a SeekableIO object in memory. It may be used to capture data that would normally be sent to a file, or it may be used to supply compiled-in data, or data retrieved elsewhere to an object that expects a stream or file.
One possible application would be to decode data received from an HTTP link, with the BitmapImage class' Load() method.
- See Also
- os::StreamableIO, os::SeekableIO, os::BitmapImage
- Author
- Henrik Isaksson (henri.nosp@m.k@bo.nosp@m.ing.n.nosp@m.u)