|
OXY API 1.0
OXY API Library Documentation
|
Generate an object containing the given contents. More...
#include <blob.hpp>
Public Member Functions | |
| auto | operator() (blob_t const &item) const -> object_t |
| auto | operator() (contents_t const &item) const -> object_t |
Generate an object containing the given contents.
This functor provides overloads to create an object_t from a blob_t or a contents_t. It computes the hash of the provided data and constructs an object_t with the appropriate type.
This overload computes the hash of the provided blob_t and constructs an object_t
References oxy::blob, oxy::get_value(), and oxy::hash.
|
inline |
This overload computes the hash of the provided contents_t and constructs an object_t with the appropriate type.