2 // convert.h - Little-endian conversion
4 // Written by Eryk Vershen
6 // The approach taken to conversion is fairly simply.
7 // Keep the in-memory copy in the machine's normal form and
8 // Convert as necessary when reading and writing.
12 * Copyright 1996,1998 by Apple Computer, Inc.
15 * Permission to use, copy, modify, and distribute this software and
16 * its documentation for any purpose and without fee is hereby granted,
17 * provided that the above copyright notice appears in all copies and
18 * that both the copyright notice and this permission notice appear in
19 * supporting documentation.
21 * APPLE COMPUTER DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
22 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
23 * FOR A PARTICULAR PURPOSE.
25 * IN NO EVENT SHALL APPLE COMPUTER BE LIABLE FOR ANY SPECIAL, INDIRECT, OR
26 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
27 * LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT,
28 * NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
29 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
59 // Forward declarations
61 int convert_block0(Block0
*data
, int to_cpu_form
);
62 int convert_bzb(BZB
*data
, int to_cpu_form
);
63 int convert_dpme(DPME
*data
, int to_cpu_form
);
65 #endif /* __convert__ */