Main Page Modules Class Hierarchy Data Structures File List Data Fields Globals Related Pages

# oscl_byte_order.h

Go to the documentation of this file.

    00001 // -*- c++ -*-
    00002 // = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
    00003
    00004 //               O S C L   B Y T E O R D E R   U T I L S
    00005
    00006 // = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
    00007
    00019 #ifndef OSCL_BYTE_ORDER_H_INCLUDED
    00020 #define OSCL_BYTE_ORDER_H_INCLUDED
    00021
    00022 #ifndef OSCL_BASE_H_INCLUDED
    00023 #include "oscl_base.h"
    00024 #endif
    00025
    00026
    00028
    00035 void little_endian_to_host(char *data, uint32 size);
    00036
    00038
    00044 void host_to_little_endian(char *data, unsigned int size);
    00045
    00047
    00054 void big_endian_to_host(char *data, unsigned int size);
    00055
    00057
    00063 void host_to_big_endian(char *data, unsigned int size);
    00064
    00065 #if (!OSCL_DISABLE_INLINES)
    00066 #include "oscl_byte_order.inl"
    00067 #endif
    00068
    00071 #endif