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

Home » Public Forums » archive » Re: Was a file opened with /Swap_if_little_endian ?
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
Re: Was a file opened with /Swap_if_little_endian ? [message #82609] Thu, 03 January 2013 20:31
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Thursday, January 3, 2013 10:47:46 PM UTC-5, wlandsman wrote:
> But is there any way to get this information programmatically? The likely suspects FSTAT() and FILE_INFO() don't seem to give this information. So my only solution right now is to capture the output of "HELP,/FILES" and parse it.

If your file is SEEKable, then you can read a 4-byte long then rewind and read the same as 4 individual bytes. By comparing the two results, you should be able to see if swapping is occurring.

Craig
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Was a file opened with /Swap_if_little_endian ?
Next Topic: copying pointers in structures

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

Current Time: Wed Oct 08 18:41:57 PDT 2025

Total time taken to generate the page: 0.00428 seconds