sec : U How to equivalence byte array to defined structures? [message #35665] |
Wed, 25 June 2003 16:32 |
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
------------------------------------------------------------ -----------------
|
|
|