000001| (* Bitstring library.
000002| * Copyright (C) 2008 Red Hat Inc., Richard W.M. Jones
000003| *
000004| * This library is free software; you can redistribute it and/or
000005| * modify it under the terms of the GNU Lesser General Public
000006| * License as published by the Free Software Foundation; either
000007| * version 2 of the License, or (at your option) any later version,
000008| * with the OCaml linking exception described in COPYING.LIB.
000009| *
000010| * This library is distributed in the hope that it will be useful,
000011| * but WITHOUT ANY WARRANTY; without even the implied warranty of
000012| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
000013| * Lesser General Public License for more details.
000014| *
000015| * You should have received a copy of the GNU Lesser General Public
000016| * License along with this library; if not, write to the Free Software
000017| * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
000018| *
000019| * $Id: bitstring_types.ml 142 2008-07-17 15:45:56Z richard.wm.jones $
000020| *)
000021|
000022| type endian = BigEndian | LittleEndian | NativeEndian
000023|
000024| let string_of_endian = function
000025| | BigEndian -> (*[0]*)"bigendian"
000026| | LittleEndian -> (*[0]*)"littleendian"
000027| | NativeEndian -> (*[0]*)"nativeendian"