Is there a code base that would allow the conversion of most common number types to be converted to byte/char. Im looking for a simple conversion using any codebase, or as3 default code base. Not the int to byte formulae.
The idea is to convert large numbers into char bytes, so as to save s开发者_开发技巧pace for string transmission of data over the net. As oppose to converting every digit to a string character.
The shorter the as3 code is to implement, the better.
The ByteArray
class: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/utils/ByteArray.html has methods for reading/writing ints, floats, doubles etc. Is that what you're looking for?
精彩评论