Conversion to float array
yoshiki at squeakland.org
Wed Jan 4 06:30:02 UTC 2006
> I am reading a sequence of bytes from a pipe. The data is actually 32
> bit float values. Is there an easy and efficient way to convert the byte
> array to a float array. Just doing asFloatArray not surprisingly gives
> me an array with each byte converted to a float and what I want is each
> 4 bytes converted to a float.
Is it something that #hackBits: can help? Take a look at
Bitmap>>copyFromByteArray: and Bitmap>>asByteArray.
More information about the Squeak-dev