#include "memory/dl_buffer.h" #include #include #include "memory/dl_code_cvt.h" namespace dl { //std::string toString(const Buffer& buf, bool add_tag /*= false*/) //{ // if (buf.empty()) // return ""; // std::string ret; // if (add_tag) // ret += "0x"; // // for (size_t i = 0; i < buf.size(); ++i) // { //#ifndef MK_OTHER_PROJECT // ret += fmt::format("{:0<2x}", buf.data()[i]); //#else // ret += format("{:0<2x}", buf.data()[i]); //#endif // // ifs.seekg(0); // ifs.read((char*)ret.data(), ret.size()); // return ret; //} }