28 lines
847 B
C++
28 lines
847 B
C++
/*
|
||
* @Description: file content
|
||
* @Author: why
|
||
* @version:
|
||
* @Date: 2025-02-28 14:32:55
|
||
* @LastEditors: why
|
||
* @LastEditTime: 2025-02-28 16:28:59
|
||
*/
|
||
#include <string>
|
||
#include <vector>
|
||
#include <map>
|
||
class Tool{
|
||
public :
|
||
void topic_split(const std::string& str, char delimiter,std::vector<std::string>&topic);//0:dst 1:src 2:sid 3:fid
|
||
std::string now_to_string();
|
||
time_t string_to_now(std::string stamp);
|
||
void hexstr_to_str(void *dst, const void *src, int src_len);
|
||
void str_to_hexstr(void *dst, const void *src, int src_len);
|
||
int encode_blob(void *dst, int max_len, const void *src, int src_len);
|
||
int decode_blob(void *dst, int max_len, const void *src);
|
||
//std::map<usigned int ,std::map<int,std::string>> Directionary;
|
||
Tool(){};
|
||
~Tool(){};
|
||
|
||
};
|
||
|
||
|