5 * Mono Project (http://www.mono-project.com)
7 * Copyright 2001-2003 Ximian, Inc (http://www.ximian.com)
8 * Copyright 2004-2009 Novell, Inc (http://www.novell.com)
9 * Licensed under the MIT license. See LICENSE file in the project root for full license information.
12 #include <mono/utils/mono-compiler.h>
13 #include "mono-endian.h"
15 #if NO_UNALIGNED_ACCESS
33 mono_read16 (const unsigned char *x)
36 #if G_BYTE_ORDER == G_LITTLE_ENDIAN
47 mono_read32 (const unsigned char *x)
50 #if G_BYTE_ORDER == G_LITTLE_ENDIAN
65 mono_read64 (const unsigned char *x)
68 #if G_BYTE_ORDER == G_LITTLE_ENDIAN
90 #else /* NO_UNALIGNED_ACCESS */
92 MONO_EMPTY_SOURCE_FILE (mono_endian);