src/storage/storage.hpp
/// Creates a mutable storage object from a string
/// @param str is a std::string
/// @return the storage adapter
Creates a mutable storage object from a string
Creates a mutable storage object from a string
inline mutable_storage storage(std::string& str)
{
    uint64_t size = static_cast<uint64_t>(str.size());
    uint8_t* data = reinterpret_cast<uint8_t*>(&str[0]);
    return mutable_storage(data, size);
}
inline mutable_storage storage ( std :: string & str ) { uint64_t size = static_cast < uint64_t > ( str . size ( ) ) ; uint8_t * data = reinterpret_cast < uint8_t * > ( & str [ 0 ] ) ; return mutable_storage ( data , size ) ; }
Creates a mutable storage object from a string
Creates a mutable storage object from a string