R0b0t1
2007-10-13 19:09:50
Yeh, all it has is some conversion functions in it… But I finally figured out my compiling errors!
The reason some conversions are missing is because trying to convert hex to binary is like asking how to convert frozen water to ice…
But I made them into a plugin because some things I've encountered need to be manipulated as binary, and I don't think SCAR has memory streams.
function HexToInt(Hexed: String): LongInt;
function IntToBin(Value: LongInt; Digits: Integer): String;
function BinToInt(Value: String): LongInt;
The reason some conversions are missing is because trying to convert hex to binary is like asking how to convert frozen water to ice…
But I made them into a plugin because some things I've encountered need to be manipulated as binary, and I don't think SCAR has memory streams.
HexToInt('F') = 15;
HexToInt('$F') = 15;
IntToBin(9, 4) = '1001';
IntToBin(9, 8) = '00001001';
BinToInt('1001') = 9;
BinToInt('00001001') = 9;