FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
ns_reserved::ns_icon::Icon Struct Reference

Stores icon data in reserved space. More...

#include <icon.hpp>

Public Member Functions

 Icon ()
 Default constructor, initializes to empty icon.
 
 Icon (char *ext, char *data, uint64_t size)
 Constructs an icon with the specified data.
 

Public Attributes

char m_ext [4]
 
char m_data [(1<< 20) - 12]
 
uint64_t m_size
 

Detailed Description

Stores icon data in reserved space.

Packed structure for embedding icon image data within the FlatImage binary.

Definition at line 44 of file icon.hpp.

Constructor & Destructor Documentation

◆ Icon() [1/2]

ns_reserved::ns_icon::Icon::Icon ( )
inline

Default constructor, initializes to empty icon.

Definition at line 53 of file icon.hpp.

◆ Icon() [2/2]

ns_reserved::ns_icon::Icon::Icon ( char * ext,
char * data,
uint64_t size )
inline

Constructs an icon with the specified data.

Parameters
extFile extension (3 characters + null terminator)
dataIcon image data
sizeSize of the icon data in bytes

Definition at line 66 of file icon.hpp.

Member Data Documentation

◆ m_data

char ns_reserved::ns_icon::Icon::m_data[(1<< 20) - 12]

Definition at line 47 of file icon.hpp.

◆ m_ext

char ns_reserved::ns_icon::Icon::m_ext[4]

Definition at line 46 of file icon.hpp.

◆ m_size

uint64_t ns_reserved::ns_icon::Icon::m_size

Definition at line 48 of file icon.hpp.


The documentation for this struct was generated from the following file: