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

Home » Public Forums » archive » type reform
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
type reform [message #54756] Wed, 04 July 2007 11:07
greg.addr is currently offline  greg.addr
Messages: 160
Registered: May 2007
Senior Member
Is there any way to reform an array so that its type changes? I want
to read a file format which contains a mixture of 2 and 4-byte
integers. Rather than pre-build complicated structures to read it, it
would be nice to read the whole thing as 2-byte values, cut it up as
necessary, and then 'reform' the necessary blocks into 4-byte integers
with no processing cost.

Essentially a way to convert an INT = Array[100] into a LONG =
Array[50] ?

Greg
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Is there an IDL version 6.4 for Fedora 7 i386
Next Topic: IDL ION

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

Current Time: Wed Oct 08 17:31:03 PDT 2025

Total time taken to generate the page: 0.00508 seconds