curl_endian.h
Go to the documentation of this file.
00001 #ifndef HEADER_CURL_ENDIAN_H
00002 #define HEADER_CURL_ENDIAN_H
00003 /***************************************************************************
00004  *                                  _   _ ____  _
00005  *  Project                     ___| | | |  _ \| |
00006  *                             / __| | | | |_) | |
00007  *                            | (__| |_| |  _ <| |___
00008  *                             \___|\___/|_| \_\_____|
00009  *
00010  * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
00011  *
00012  * This software is licensed as described in the file COPYING, which
00013  * you should have received as part of this distribution. The terms
00014  * are also available at https://curl.haxx.se/docs/copyright.html.
00015  *
00016  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
00017  * copies of the Software, and permit persons to whom the Software is
00018  * furnished to do so, under the terms of the COPYING file.
00019  *
00020  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
00021  * KIND, either express or implied.
00022  *
00023  ***************************************************************************/
00024 
00025 /* Converts a 16-bit integer from little endian */
00026 unsigned short Curl_read16_le(const unsigned char *buf);
00027 
00028 /* Converts a 32-bit integer from little endian */
00029 unsigned int Curl_read32_le(const unsigned char *buf);
00030 
00031 #if (CURL_SIZEOF_CURL_OFF_T > 4)
00032 /* Converts a 64-bit integer from little endian */
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 /* Converts a 16-bit integer from big endian */
00041 unsigned short Curl_read16_be(const unsigned char *buf);
00042 
00043 /* Converts a 32-bit integer from big endian */
00044 unsigned int Curl_read32_be(const unsigned char *buf);
00045 
00046 #if (CURL_SIZEOF_CURL_OFF_T > 4)
00047 /* Converts a 64-bit integer from big endian */
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 /* Converts a 16-bit integer to little endian */
00056 void Curl_write16_le(const short value, unsigned char *buffer);
00057 
00058 /* Converts a 32-bit integer to little endian */
00059 void Curl_write32_le(const int value, unsigned char *buffer);
00060 
00061 #if (CURL_SIZEOF_CURL_OFF_T > 4)
00062 /* Converts a 64-bit integer to little endian */
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 /* HEADER_CURL_ENDIAN_H */


rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:02