repeat for each char c in negated_binary_file
put charToNum(c) into x
put numToChar(255-x) after fixed_binary_file
end repeat

--- On Wed, 9/7/11, Matthias Rebbe <[email protected]> wrote:

From: Matthias Rebbe <[email protected]>
Subject: how to bitwise negate a binary file?
To: "How to use LiveCode" <[email protected]>
Date: Wednesday, September 7, 2011, 5:23 PM

Hi,

i have here some binary files, which were negated bitwise. How can i "convert" 
them back?
Is there a livecode function i can use?

Or do i have to 
convert the binary file to hex, 
convert each byte to decimal,
convert each "decimal"byte value  with "bitNot",
reconvert to hex and then convert to binary again?

Any ideas?

Regards,

Matthias
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to