?? bytehexstrconvert.h
字號:
//用于BYTE與十六進制數字串互換的函數
//作用:將 pBytes處,長度為nBytes的字節,轉換為十六進制數字,存于str
//說明:調用程序必須保證 str的長度為 2*nBytes + 1(NULL)
//返回:轉換后的字節數,不包括加入的NULL,實際 == 2*nBytes
extern int ByteToHexStr(const unsigned char*pBytes, int nBytes, char* str);
//作用:將十六進制數字串str,轉換為十六進制BYTE,存于pBytes
//說明:調用程序必須保證pBytes 的長度, str的長度應該是偶數
//返回:轉換后的字節數,實際 == str長度 / 2
extern int HexStrToByte(const char*str, unsigned char*pBytes);
//作用:將十六進制數字串str,的前len字節 轉換為十六進制BYTE,存于pBytes
//說明:調用程序必須保證pBytes 的長度, len應該是偶數
extern int HexStrLenToByte(const char*str, int len, unsigned char*pBytes);
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -