This commit is contained in:
Quella777
2025-08-13 14:25:26 +08:00
parent 1683996d43
commit f3c7d97edf
2 changed files with 75 additions and 2 deletions

View File

@@ -260,6 +260,14 @@ namespace QCL
*/
size_t GetBytesBefore(const std::string &marker, bool includeMarker = false);
/**
* @brief 从指定位置读取指定字节数,默认读取到文件末尾
* @param pos 起始位置(字节偏移)
* @param count 要读取的字节数默认为0表示读取到文件末尾
* @return 读取到的字节数据
*/
std::vector<char> ReadBytesFrom(size_t pos, size_t count = 0);
/**
* @brief 检查文件是否存在
*/
@@ -284,4 +292,14 @@ namespace QCL
// 屏蔽所有信号
void blockAllSignals();
// 去除字符串的左空格
std::string Ltrim(const std::string &s);
// 去除字符串右侧的空格
std::string Rtrim(const std::string &s);
// 去除字符串左右两侧的空格
std::string LRtrim(const std::string &s);
}