Lines Matching refs:buf
40 unsigned short Curl_read16_le(unsigned char *buf) in Curl_read16_le() argument
42 return (unsigned short)(((unsigned short)buf[0]) | in Curl_read16_le()
43 ((unsigned short)buf[1] << 8)); in Curl_read16_le()
59 unsigned int Curl_read32_le(unsigned char *buf) in Curl_read32_le() argument
61 return ((unsigned int)buf[0]) | ((unsigned int)buf[1] << 8) | in Curl_read32_le()
62 ((unsigned int)buf[2] << 16) | ((unsigned int)buf[3] << 24); in Curl_read32_le()
80 unsigned long long Curl_read64_le(unsigned char *buf) in Curl_read64_le() argument
82 return ((unsigned long long)buf[0]) | in Curl_read64_le()
83 ((unsigned long long)buf[1] << 8) | in Curl_read64_le()
84 ((unsigned long long)buf[2] << 16) | in Curl_read64_le()
85 ((unsigned long long)buf[3] << 24) | in Curl_read64_le()
86 ((unsigned long long)buf[4] << 32) | in Curl_read64_le()
87 ((unsigned long long)buf[5] << 40) | in Curl_read64_le()
88 ((unsigned long long)buf[6] << 48) | in Curl_read64_le()
89 ((unsigned long long)buf[7] << 56); in Curl_read64_le()
92 unsigned __int64 Curl_read64_le(unsigned char *buf) in Curl_read64_le() argument
94 return ((unsigned __int64)buf[0]) | ((unsigned __int64)buf[1] << 8) | in Curl_read64_le()
95 ((unsigned __int64)buf[2] << 16) | ((unsigned __int64)buf[3] << 24) | in Curl_read64_le()
96 ((unsigned __int64)buf[4] << 32) | ((unsigned __int64)buf[5] << 40) | in Curl_read64_le()
97 ((unsigned __int64)buf[6] << 48) | ((unsigned __int64)buf[7] << 56); in Curl_read64_le()
116 unsigned short Curl_read16_be(unsigned char *buf) in Curl_read16_be() argument
118 return (unsigned short)(((unsigned short)buf[0] << 8) | in Curl_read16_be()
119 ((unsigned short)buf[1])); in Curl_read16_be()
135 unsigned int Curl_read32_be(unsigned char *buf) in Curl_read32_be() argument
137 return ((unsigned int)buf[0] << 24) | ((unsigned int)buf[1] << 16) | in Curl_read32_be()
138 ((unsigned int)buf[2] << 8) | ((unsigned int)buf[3]); in Curl_read32_be()
156 unsigned long long Curl_read64_be(unsigned char *buf) in Curl_read64_be() argument
158 return ((unsigned long long)buf[0] << 56) | in Curl_read64_be()
159 ((unsigned long long)buf[1] << 48) | in Curl_read64_be()
160 ((unsigned long long)buf[2] << 40) | in Curl_read64_be()
161 ((unsigned long long)buf[3] << 32) | in Curl_read64_be()
162 ((unsigned long long)buf[4] << 24) | in Curl_read64_be()
163 ((unsigned long long)buf[5] << 16) | in Curl_read64_be()
164 ((unsigned long long)buf[6] << 8) | in Curl_read64_be()
165 ((unsigned long long)buf[7]); in Curl_read64_be()
168 unsigned __int64 Curl_read64_be(unsigned char *buf) in Curl_read64_be() argument
170 return ((unsigned __int64)buf[0] << 56) | ((unsigned __int64)buf[1] << 48) | in Curl_read64_be()
171 ((unsigned __int64)buf[2] << 40) | ((unsigned __int64)buf[3] << 32) | in Curl_read64_be()
172 ((unsigned __int64)buf[4] << 24) | ((unsigned __int64)buf[5] << 16) | in Curl_read64_be()
173 ((unsigned __int64)buf[6] << 8) | ((unsigned __int64)buf[7]); in Curl_read64_be()