本文整理自网络,侵删。
bintohex和hextobin
var ms: TMemoryStream;<br> var hex: string; SetLength(hex, ms.Size * 2); BinToHex(ms.Memory, PChar(hex), ms.Size);
var ms: TMemoryStream;<br>var hex: string; len := Length(hex) div 2; ms.SetSize(len); HexToBin(PChar(hex), ms.Memory, ms.Size); end;
https://www.cnblogs.com/hnxxcxg/p/12381626.html
相关阅读 >>
winapi 字符及字符串函数(4): charupperbuff - 把缓冲区中指定数目的字符转大写
Delphi try abort、exit except 、finally end 执行情况
Delphi firemonkey的屏幕分辨率hdpi、mdpi、ldpi的差别
更多相关阅读请进入《Delphi》频道 >>