/* The 4 extra bytes are for a null byte after both the name and value, a type
/* The 4 extra bytes are for a null byte after both the name and value, a type
andastringsize*/
andastringsize*/
constexprMaterialAttributeData::MaterialAttributeData(constContainers::StringViewname,constContainers::StringViewvalue)noexcept:_data{(CORRADE_CONSTEXPR_ASSERT(name.size()+value.size()+4<=Implementation::MaterialAttributeDataSize,"Trade::MaterialAttributeData: name"<<name<<"and value"<<value<<"too long, expected at most"<<Implementation::MaterialAttributeDataSize-4<<"bytes in total but got"<<name.size()+value.size()),name),value}{}
/* It would sort before " LayerName" and that's not desirable */
CORRADE_CONSTEXPR_ASSERT(!name.isEmpty(),"Trade::MaterialAttributeData: name is not allowed to be empty"),
CORRADE_CONSTEXPR_ASSERT(name.size()+value.size()+4<=Implementation::MaterialAttributeDataSize,"Trade::MaterialAttributeData: name"<<name<<"and value"<<value<<"too long, expected at most"<<Implementation::MaterialAttributeDataSize-4<<"bytes in total but got"<<name.size()+value.size()),