Go to the documentation of this file.00001 #ifndef HEADER_CURL_ENDIAN_H
00002 #define HEADER_CURL_ENDIAN_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 unsigned short Curl_read16_le(const unsigned char *buf);
00027
00028
00029 unsigned int Curl_read32_le(const unsigned char *buf);
00030
00031 #if (CURL_SIZEOF_CURL_OFF_T > 4)
00032
00033 #if defined(HAVE_LONGLONG)
00034 unsigned long long Curl_read64_le(const unsigned char *buf);
00035 #else
00036 unsigned __int64 Curl_read64_le(const unsigned char *buf);
00037 #endif
00038 #endif
00039
00040
00041 unsigned short Curl_read16_be(const unsigned char *buf);
00042
00043
00044 unsigned int Curl_read32_be(const unsigned char *buf);
00045
00046 #if (CURL_SIZEOF_CURL_OFF_T > 4)
00047
00048 #if defined(HAVE_LONGLONG)
00049 unsigned long long Curl_read64_be(const unsigned char *buf);
00050 #else
00051 unsigned __int64 Curl_read64_be(const unsigned char *buf);
00052 #endif
00053 #endif
00054
00055
00056 void Curl_write16_le(const short value, unsigned char *buffer);
00057
00058
00059 void Curl_write32_le(const int value, unsigned char *buffer);
00060
00061 #if (CURL_SIZEOF_CURL_OFF_T > 4)
00062
00063 #if defined(HAVE_LONGLONG)
00064 void Curl_write64_le(const long long value, unsigned char *buffer);
00065 #else
00066 void Curl_write64_le(const __int64 value, unsigned char *buffer);
00067 #endif
00068 #endif
00069
00070 #endif