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