Conversion to float array

Cowdery, Bob [UK] Bob.Cowdery at CGI-Europe.com
Sun Jan 1 11:54:15 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.

Any help appreciated.

Thanks
Bob
*** Confidentiality Notice *** Proprietary/Confidential
Information belonging to CGI Group Inc. and its affiliates
may be contained in this message. If you are not a recipient
indicated or intended in this message (or responsible for
delivery of this message to such person), or you think for
any reason that this message may have been addressed to you
in error, you may not use or copy or deliver this message
to anyone else.  In such case, you should destroy this
message and are asked to notify the sender by reply email.



More information about the Squeak-dev mailing list