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

Home » Public Forums » archive » Re: Convert a byte array to a structure?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Convert a byte array to a structure? [message #28875] Thu, 17 January 2002 16:10 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
mikef@grsgds6.lpl.arizona.edu (Mike Fitzgibbon) writes:

> Does IDL have a simple and/or elegant way to convert a byte array
> into a structure?
>
> I could write a brute force approach like:
... brute force approach which converts each data type by hand ..

I think you are stuck with the brute force approach. If you have an
array of structures, then you may save some time by slicing out all of
the field "A" tags first, then "B" and so on.

I believe that if you want to go "native" there are C functions to
import C structures into IDL.

Good luck!
Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: nested subroutines and scope
Next Topic: max, mean, min of array

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

Current Time: Wed Oct 08 19:13:49 PDT 2025

Total time taken to generate the page: 0.00358 seconds