OXY API 1.0
OXY API Library Documentation
Loading...
Searching...
No Matches
oxy::core::blob::make_object_fn Struct Reference

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

Detailed Description

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.

Member Function Documentation

◆ operator()() [1/2]

auto oxy::core::blob::make_object_fn::operator() ( blob_t const & item) const -> object_t
inline

This overload computes the hash of the provided blob_t and constructs an object_t

References oxy::blob, oxy::get_value(), and oxy::hash.

◆ operator()() [2/2]

auto oxy::core::blob::make_object_fn::operator() ( contents_t const & item) const -> object_t
inline

This overload computes the hash of the provided contents_t and constructs an object_t with the appropriate type.

References oxy::blob, and oxy::hash.