SILLY_MemoryDataSource(3)
| MemoryDataSource(3) | Simple Image Loading LibrarY | MemoryDataSource(3) |
NAME
MemoryDataSource - Load an image from a memory area.
SYNOPSIS
#include <SILLYMemoryDataSource.h>
Inherits DataSource.
Public Member Functions
const byte * getDataPtr () const
Get raw access to the image data. size_t getSize () const
Return the size of the data. MemoryDataSource (const byte *data,
size_t size)
Create a data source from an existing memory area. byte
operator[] (size_t offset) const
Retieve the byte at offset.
Detailed Description
Load an image from a memory area.
This class provides the services required to load an image from a byte array. The object does not change the memory area and does no take owner chip of the data.
Definition at line 48 of file SILLYMemoryDataSource.h.
Constructor & Destructor Documentation
MemoryDataSource (const byte * data, size_t size)
Create a data source from an existing memory area. The MemoryDataSource does not take the ownership of the memory pointed by data.
Parameters:
size the size of data
Definition at line 46 of file SILLYMemoryDataSource.cpp.
Member Function Documentation
byte operator[] (size_t offset) const [inherited]
Retieve the byte at offset.
Author
Generated automatically by Doxygen for Simple Image Loading LibrarY from the source code.
| Sat Mar 2 2019 | Version 0.1.0 |
