#pragma once #include #include #include #include namespace pldm { namespace utils { /** @brief Convert the buffer to std::string * * In case the string encoding is not ASCII, an error string is returned. * * @param[in] pldm_string_type - DSP0267, Table 20 * @param[in] var - pointer to data and length of the data * * @return[expected] std::string equivalent of variable field * @return[unexpected] error message string */ std::expected toString(uint8_t pldm_string_type, const struct variable_field &var); } // namespace utils } // namespace pldm