2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Read a big endian double floating point (64bit) from a streamhook
11 /******************************************************************************
15 #include <aros/bigendianio.h>
16 #include <proto/alib.h>
26 Reads one big endian 64bit double precision floating point value
31 dataptr - Put the data here
32 stream - Read from this stream
35 The function returns TRUE on success. On success, the value
36 read is written into dataptr. On failure, FALSE is returned and the
37 contents of dataptr are not changed.
40 This function reads big endian values from a streamhook even on
41 little endian machines.
48 ReadByte(), ReadWord(), ReadLong(), ReadFloat(), ReadDouble(),
49 ReadString(), ReadStruct(), WriteByte(), WriteWord(), WriteLong(),
50 WriteFloat(), WriteDouble(), WriteString(), WriteStruct()
55 ******************************************************************************/
60 struct BEIOM_Read rd
= {BEIO_READ
};
62 ptr
= (UBYTE
*)&value
;
71 #define READ_ONE_BYTE \
72 if ((c = CallHookA (hook, stream, &rd)) == EOF) \