|
|
|
|
|
|
| Author |
Message |
rejoc *nix forums beginner
Joined: 23 Jun 2005
Posts: 18
|
Posted: Sat Nov 19, 2005 4:47 pm Post subject:
Re: help format VMS
|
|
|
Vincent a écrit :
| Quote: | Bonjour,
je dois lire une fichier binaire.
Comme info j'ai :
Brief description of the file :
TYPE : integer binary (VMS)
The type of all variables is integer,DEC binary data format
Quelqu'un peut-il m'indiquer comment marche ce codage ?
mes 2 premiers octets sont E4 01 ( quelle est sa valeur en décimal ?
ces deux octets sont-ils inversés ? )
Merci pour vos infos
Vincent
Si c'est un format integer, alors c'est 4 octets... Si ce que vous |
affichez sort de la commande dump de VMS (où les octets de poids fort
sont à gauche), alors E4 est l'octet de poids fort de votre "word" (2
octets).
VMS est "little endian". Si vous lisez le fichier sur une machine du
meme type, prenez les octets 4 par 4 et vous aurez vos entiers. Si la
machine sur laquelle vous lisez est big endian (hpux, aix, ...) , il
faut inverser les octets lus 4 par 4... |
|
| Back to top |
|
 |
Vincent *nix forums beginner
Joined: 07 Jun 2005
Posts: 11
|
Posted: Sat Nov 19, 2005 4:25 pm Post subject:
help format VMS
|
|
|
Bonjour,
je dois lire une fichier binaire.
Comme info j'ai :
Brief description of the file :
TYPE : integer binary (VMS)
The type of all variables is integer,DEC binary data format
Quelqu'un peut-il m'indiquer comment marche ce codage ?
mes 2 premiers octets sont E4 01 ( quelle est sa valeur en décimal ?
ces deux octets sont-ils inversés ? )
Merci pour vos infos
Vincent |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Tue Jan 06, 2009 8:35 am | All times are GMT
|
|
Advertising | Read Free Manga Online | Buy Anything On eBay | Mortgage | Secured Loans
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|