Re: Reading Float Data from a binary file into ada
- From: Cesar Rabak <csrabak@xxxxxxxxxxxx>
- Date: Tue, 30 Jan 2007 19:14:26 -0200
Niklas Holsti escreveu:
[snipped]
The portability of this approach is the same as for the C code: it depends on the byte order in the VB file, the order in which you concatenate the 4 octets into a 32-bit value, and the representation of Float values. But if it works in C, it should work in Ada, assuming that the Ada Float type has the same representation as the C float type, which is likely.
0.01999: since there are not VB implementations on machines other than Intel, I think once the 'right' endianness is found it will survive all implementations in Ada, right?
.
- Follow-Ups:
- References:
- Reading Float Data from a binary file into ada
- From: frikk
- Re: Reading Float Data from a binary file into ada
- From: Niklas Holsti
- Reading Float Data from a binary file into ada
- Prev by Date: Re: Easy question about Character manipulation
- Next by Date: Re: Reading Float Data from a binary file into ada
- Previous by thread: Re: Reading Float Data from a binary file into ada
- Next by thread: Re: Reading Float Data from a binary file into ada
- Index(es):
Relevant Pages
|