Donner SVG main
0.8.0 ยท 64d9612f0.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::PackagedResource Struct Reference

Authenticated identity of a packaged asset; this type contains no payload bytes. More...

#include "donner/base/PackagedResource.h"

Public Member Functions

 PackagedResource (const char *id, const char *sha256, size_t encodedSize, size_t decodedSize, const char *mediaType, const char *group, const char *path, const char *testRunfilesRoot)
 PackagedResource (const PackagedResource &)=delete
PackagedResource & operator= (const PackagedResource &)=delete
bool ready () const
bool failed () const
ResourceBytes load () const
 Read verified bytes, retaining them in the bounded application resource session.
std::span< const uint8_t > view () const
 Borrow from the active application session. Destroy consumers before ending that session.
 operator std::span< const uint8_t > () const
const uint8_t * data () const
size_t size () const
bool empty () const
const uint8_t * begin () const
const uint8_t * end () const

Public Attributes

const char * id
const char * sha256
size_t encodedSize
size_t decodedSize
const char * mediaType
const char * group
const char * path
const char * testRunfilesRoot

Detailed Description

Authenticated identity of a packaged asset; this type contains no payload bytes.


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