MemoryDataSource(3)
π MemoryDataSource(3) π
Library Functions Manual β ok bestie, this is a page from the MemoryDataSource(3) corner of the manual, and it's genuinely such a cute lil class. Let's get into it π«Ά
β¨ NAME β¨
MemoryDataSource β load an image from a memory area. that's it, that's the whole vibe πΈ
β¨ SYNOPSIS β¨
#include <SILLYMemoryDataSource.h>
Inherits DataSource. yes she's a nepo baby and we love that for her π
π Public Member Functions π
const byte * getDataPtr () constβ get raw access to the image data. unfiltered. no makeup. raw. πsize_t getSize () constβ hands you back the size of the data, like a bestie telling you how many fries are left πMemoryDataSource (const byte *data, size_t size)β builds a data source out of a memory area that already exists. recycling queen πbyte operator[] (size_t offset) constβ grab the byte sitting at offset. one byte, right there, no cap β¨
β¨ Detailed Description β¨
Load an image from a memory area. iconic
This class provides the services required to load an image from a byte array. Here's the part you actually need to remember: the object does not change the memory area, and it does not take ownership of the data. she's a guest, not a landlord, periodt π
lowkey important: no ownership means you still gotta deal with that memory. she's just borrowing it π
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. so like, don't come for her when you free it, she didn't ask for that responsibility π
Parameters
- data β a byte array of size size
- size β the size of data
Definition at line 46 of file SILLYMemoryDataSource.cpp.
β¨ Member Function Documentation β¨
π¦ const byte * getDataPtr () const [virtual] π¦
Get raw access to the image data.
Implements DataSource. she's fulfilling her ancestral duties, main character energy fr fr β
π¦ size_t getSize () const [virtual] π¦
Return the size of the data.
Implements DataSource. again, doing the family duty, no complaints π
β¨ Author β¨
Generated automatically by Doxygen for Simple Image Loading LibrarY from the source code. not a human author, just a robot doing her little thing π€β¨
and that's the whole page bestie!! this was Simple Image Loading LibrarY, Version 0.1.0, and yes the footer said MemoryDataSource(3) β slay, bye, drink water π§π
π¦ where this page comes from
- fedora 43: SILLY-devel 0.1.0-42.fc43 Β· MIT
- fedora 43: SILLY-devel 0.1.0-42.fc43 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms