Re: bigendian
If you know the type of data stored in these files, then you can swap
the bytes to restore little-endian ordering. It may not be elegant, but
it is fairly easy to do with a small program:
Assuming you have 4 bytes integers and reals only, then:
For each number:
- read 4 characters (each byte is then stored in a single character)
- swap these characters
- write them to another file
The converted file will be little-endian.
Regards,
Arjen
.
Relevant Pages
- Re: Posting encryption UserRPL illegal?
... characters to quickly and repeatedly extract all the entropy that's ... second) for various character length strings: ... SWAP CHR SWAP DUP ... START SWAP CHR SWAP + NEXT ... (comp.sys.hp48) - Re: desperate... swaping two simple chars
... Basically I have to swap two characters ... > main ENDP ... you pushed the address of the two characters to swap on the stack, ... (comp.lang.asm.x86) - Re: Provocative discussion of the nature of Coffeegeek
... http://www.malabargold.co.uk (UK/European online ordering for Malabar Gold blend) ... swap Z for above characters in email address to reply ... (alt.coffee) - Re: Elementary but surprisingly difficult.
... It's not difficult if you have a library of sequence operations: ... I give you a solution for characters in a string, ... I c@ tuck IF swap 1+ 2dup c! ... (comp.lang.forth) - Re: A newbie question
... Declare a new subroutine named 'swap' that expects two values as arguments. ... Set $e to a string of dots, having the number of dots specified in the ... Swap the first characters in the string with the second ... (comp.lang.perl.misc) |
|