DataSource(3)

πŸ“¦ version 0.1.0, in fedora 43, fedora 44

✨ NAME ✨

DataSource β€” it's an abstract class, bestie, and its whole job is feeding data to the loader πŸ’–


🌸 SYNOPSIS 🌸

#include <SILLYDataSource.h>

Inherited by FileDataSource, and MemoryDataSource.

πŸŽ€ Public Member Functions πŸŽ€

  • virtual const byte * getDataPtr () const =0 β€” hands you raw access to the image data, no middleman πŸ’…
  • virtual size_t getSize () const =0 β€” tells you how big the data is, periodt
  • byte operator[] (size_t offset) const β€” grab the byte sitting at offset πŸ¦‹
  • virtual ~DataSource () β€” the destructor, aka the goodbye kiss πŸ’œ

πŸ‘‘ Detailed Description πŸ‘‘

okay so here's the tea: this is an abstract class used to provide data to the loader. That's literally its whole personality πŸ’€

It defines the abstract data loading operation required for the library β€” like, the vibe contract that every data source has to sign 🫢

Definition at line 46 of file SILLYDataSource.h.

🌈 Member Function Documentation 🌈

⭐ virtual const byte * getDataPtr () const [pure virtual]

Get raw access to the image data. That's it, that's the function ✨

Implemented in FileDataSource, and MemoryDataSource.

⭐ virtual size_t getSize () const [pure virtual]

Return the size of the data. Iconic, honestly 🌸

Implemented in FileDataSource, and MemoryDataSource.


πŸ’– Author πŸ’–

Generated automatically by Doxygen for Simple Image Loading LibrarY from the source code. (Not a human, just a robot doing its little robot thing πŸ€–βœ¨)


and that's the whole page, bestie!! no cap, every last detail is in there πŸ’… this lil manual page comes to you courtesy of Simple Image Loading LibrarY, Version 0.1.0, and yeah, it's DataSource(3) β€” slay, go read some source code, mwah πŸŽ€πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from