comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » From Bytes to Doubles, etc.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
From Bytes to Doubles, etc. [message #12024] Wed, 17 June 1998 00:00
Justin[1] is currently offline  Justin[1]
Messages: 4
Registered: June 1998
Junior Member
Hi, We have some legacy code that reads in large amounts of unformatted
binary data into (large) byte arrays. We know which bytes hold which
information (e.g. a double from byte nnnn to mmmm and a float from xxxx to
yyyy) but we're having trouble neatly converting the raw bytes back into
their original numbers. Since we only want to look at a few of the data it
would be wasteful reading all the data (formatted) into proper variables. We
have succeeded in writing the few bytes unformatted to a file and then
reading back formatted into variables but again this seems rather inelegant.
I suppose what we really need is a cross between READU and READS to read
unformatted from a string (byte array). It would be a breeze in C using
pointers, can anyone suggest how we might do it in IDL? Cheers,

Justin.

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Q: Array of Structures
Next Topic: WHat the bloody hell?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:46:24 PDT 2025

Total time taken to generate the page: 0.00693 seconds