So each element in a ByteArray can hold 8 bits.
What about the readInt() method of the ByteArray, does an integer then
span over 4 elements of the bytearray. And if I start at position 0 and
then call the readInt(), is the position after that then 4?
Jiri
Kerry Thompson wrote:
Jiri wrote:
Nice, that you took the time to write that post. It is much appreciated.
Thanks, Jiri.
One other thing worth mentioning is that an integer is actually 4 bytes, so
you have 32 bits. I kept my example to one byte for simplicity. If you want
to do operations on a single byte, you can use ByteArray elements.
Other bitwise operators to check out are XOR (exclusive OR, which means one
or the other is on, but not both) and shift operators >> and << to check the
value of a particular bit.
Cordially,
Kerry Thompson
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders