2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Write a big endian floating point (64bit) from a streamhook
11 /******************************************************************************
15 #include <aros/bigendianio.h>
16 #include <proto/alib.h>
26 Writes one big endian 64bit double precision floating point value
30 hook - Write to this streamhook
31 data - Data to be written
32 stream - Stream passed to streamhook
35 The function returns TRUE on success and FALSE otherwise.
36 See IoErr() for the reason in case of an error.
39 This function writes big endian values to a file even on little
47 ReadByte(), ReadWord(), ReadLong(), ReadFloat(), ReadDouble(),
48 ReadString(), ReadStruct(), WriteByte(), WriteWord(), WriteLong(),
49 WriteFloat(), WriteDouble(), WriteString(), WriteStruct()
53 ******************************************************************************/
56 struct BEIOM_Write wr
= {BEIO_WRITE
,};
62 ptr
= ((UBYTE
*)&data
) + 7;
66 #define WRITE_ONE_BYTE \
67 wr.Data = *ptr NEXT; \
68 if (CallHookA (hook, stream, &wr) == EOF) \