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

Home » Public Forums » archive » sec : U How to equivalence byte array to defined structures?
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
sec : U How to equivalence byte array to defined structures? [message #35665] Wed, 25 June 2003 16:32
Andrew Cool is currently offline  Andrew Cool
Messages: 219
Registered: January 1996
Senior Member
Hi All,

All round Genius and Good Guy Randall Frank has amended his
idl_tools DLM so that a gzipped variable can be gunzipped in memory,
meaning that no temporary files are involved - just write out the
final decompressed data! (I don't think the new version is posted
on Ronn Kling's site yet.)

Now that I've got a nice byte array in memory representing the
decompressed data, I'd like to stow it into a couple of structures,
a header structure and a data structure.

If the byte array is written out to a file, I read it back in using
the header and data structure.

Rather than write out the data to a file, how do I assign or
equivalence
the byte array to my two structures in memory?

I guess I'm looking for something like :-

Equivalence(header_structure,byte_array(0:x))
Equivalence(data_structure,byte_array(x:*))


Any ideas?


Andrew

------------------------------------------------------------ -----------------
Andrew D. Cool
Electromagnetics & Propagation Group
Intelligence, Surveillance & Reconnaissance Division
Defence Science & Technology Organisation
PO Box 1500, Edinburgh
South Australia 5111

Phone : 061 8 8259 5740 Fax : 061 8 8259 6673
Email : andrew.cool@dsto.defence.gov.au

------------------------------------------------------------ -----------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: MORPH_XYZ and values keyword
Next Topic: IDL 6.0 information available

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

Current Time: Wed Oct 08 20:01:54 PDT 2025

Total time taken to generate the page: 0.03162 seconds