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 |
Authenticated identity of a packaged asset; this type contains no payload bytes.