1) I haven't found any way to do bitshifting (<< and >>). Does Rev have an equivalent function?
2) In the files I have been reading in I have to deal with signed 15 bit integers. I need to be able to read these integers as base 10 numbers and then convert base 10 numbers into a signed 15 bit integer. I wrote a small function that uses two's complement for reading them but I was wondering if there was an easier way?
3) The files I am reading store the information using Big-Endian. Let's says I was reading in a 4 byte unsigned integer. Currently I am doing something resembling the following:
-- get binary data
binaryDecode("B8B8B8B8", myBinaryData, opt1, opt2, opt3, opt4)
-- Big-Endian conversion
put opt4 & opt3 & opt2 & opt1 into opt
It doesn't seem like this is the most efficient way to do this? Any suggestions?
If anyone has tips on any of these items I would really appreciate it.
Thanks,
Trevor DeVore Blue Mango Multimedia [EMAIL PROTECTED]
_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
