Class BlobResource
Defined in File Resource.hpp
Inheritance Relationships
Base Type
public Cacao::Resource(Class Resource)
Class Documentation
-
class BlobResource : public Cacao::Resource
Resource that holds a blob of data.
Public Functions
Public Static Functions
-
static inline std::shared_ptr<BlobResource> Create(std::vector<unsigned char> &&data, const std::string &addr)
Create a new blob from binary data.
- Parameters:
data – The data blob to store
addr – The resource address to associate with the blob
- Throws:
BadValueException – If the address is malformed
-
static inline std::shared_ptr<BlobResource> Create(std::string &&data, const std::string &addr)
Create a new blob from textual data.
- Parameters:
data – The string to store
addr – The resource address to associate with the blob
- Throws:
BadValueException – If the address is malformed
-
static inline std::shared_ptr<BlobResource> Create(std::vector<unsigned char> &&data, const std::string &addr)