Lines Matching refs:buf

183 simple_object_fetch_big_16 (const unsigned char *buf)  in simple_object_fetch_big_16()  argument
185 return ((unsigned short) buf[0] << 8) | (unsigned short) buf[1]; in simple_object_fetch_big_16()
191 simple_object_fetch_little_16 (const unsigned char *buf) in simple_object_fetch_little_16() argument
193 return ((unsigned short) buf[1] << 8) | (unsigned short) buf[0]; in simple_object_fetch_little_16()
199 simple_object_fetch_big_32 (const unsigned char *buf) in simple_object_fetch_big_32() argument
201 return (((unsigned int) buf[0] << 24) in simple_object_fetch_big_32()
202 | ((unsigned int) buf[1] << 16) in simple_object_fetch_big_32()
203 | ((unsigned int) buf[2] << 8) in simple_object_fetch_big_32()
204 | (unsigned int) buf[3]); in simple_object_fetch_big_32()
210 simple_object_fetch_little_32 (const unsigned char *buf) in simple_object_fetch_little_32() argument
212 return (((unsigned int) buf[3] << 24) in simple_object_fetch_little_32()
213 | ((unsigned int) buf[2] << 16) in simple_object_fetch_little_32()
214 | ((unsigned int) buf[1] << 8) in simple_object_fetch_little_32()
215 | (unsigned int) buf[0]); in simple_object_fetch_little_32()
221 simple_object_fetch_big_32_ulong (const unsigned char *buf) in simple_object_fetch_big_32_ulong() argument
223 return (ulong_type) simple_object_fetch_big_32 (buf); in simple_object_fetch_big_32_ulong()
229 simple_object_fetch_little_32_ulong (const unsigned char *buf) in simple_object_fetch_little_32_ulong() argument
231 return (ulong_type) simple_object_fetch_little_32 (buf); in simple_object_fetch_little_32_ulong()
239 simple_object_fetch_big_64 (const unsigned char *buf) in simple_object_fetch_big_64() argument
241 return (((ulong_type) buf[0] << 56) in simple_object_fetch_big_64()
242 | ((ulong_type) buf[1] << 48) in simple_object_fetch_big_64()
243 | ((ulong_type) buf[2] << 40) in simple_object_fetch_big_64()
244 | ((ulong_type) buf[3] << 32) in simple_object_fetch_big_64()
245 | ((ulong_type) buf[4] << 24) in simple_object_fetch_big_64()
246 | ((ulong_type) buf[5] << 16) in simple_object_fetch_big_64()
247 | ((ulong_type) buf[6] << 8) in simple_object_fetch_big_64()
248 | (ulong_type) buf[7]); in simple_object_fetch_big_64()
254 simple_object_fetch_little_64 (const unsigned char *buf) in simple_object_fetch_little_64() argument
256 return (((ulong_type) buf[7] << 56) in simple_object_fetch_little_64()
257 | ((ulong_type) buf[6] << 48) in simple_object_fetch_little_64()
258 | ((ulong_type) buf[5] << 40) in simple_object_fetch_little_64()
259 | ((ulong_type) buf[4] << 32) in simple_object_fetch_little_64()
260 | ((ulong_type) buf[3] << 24) in simple_object_fetch_little_64()
261 | ((ulong_type) buf[2] << 16) in simple_object_fetch_little_64()
262 | ((ulong_type) buf[1] << 8) in simple_object_fetch_little_64()
263 | (ulong_type) buf[0]); in simple_object_fetch_little_64()
271 simple_object_set_big_16 (unsigned char *buf, unsigned short val) in simple_object_set_big_16() argument
273 buf[0] = (val >> 8) & 0xff; in simple_object_set_big_16()
274 buf[1] = val & 0xff; in simple_object_set_big_16()
280 simple_object_set_little_16 (unsigned char *buf, unsigned short val) in simple_object_set_little_16() argument
282 buf[1] = (val >> 8) & 0xff; in simple_object_set_little_16()
283 buf[0] = val & 0xff; in simple_object_set_little_16()
289 simple_object_set_big_32 (unsigned char *buf, unsigned int val) in simple_object_set_big_32() argument
291 buf[0] = (val >> 24) & 0xff; in simple_object_set_big_32()
292 buf[1] = (val >> 16) & 0xff; in simple_object_set_big_32()
293 buf[2] = (val >> 8) & 0xff; in simple_object_set_big_32()
294 buf[3] = val & 0xff; in simple_object_set_big_32()
300 simple_object_set_little_32 (unsigned char *buf, unsigned int val) in simple_object_set_little_32() argument
302 buf[3] = (val >> 24) & 0xff; in simple_object_set_little_32()
303 buf[2] = (val >> 16) & 0xff; in simple_object_set_little_32()
304 buf[1] = (val >> 8) & 0xff; in simple_object_set_little_32()
305 buf[0] = val & 0xff; in simple_object_set_little_32()
311 simple_object_set_big_32_ulong (unsigned char *buf, ulong_type val) in simple_object_set_big_32_ulong() argument
313 simple_object_set_big_32 (buf, val); in simple_object_set_big_32_ulong()
319 simple_object_set_little_32_ulong (unsigned char *buf, ulong_type val) in simple_object_set_little_32_ulong() argument
321 simple_object_set_little_32 (buf, val); in simple_object_set_little_32_ulong()
329 simple_object_set_big_64 (unsigned char *buf, ulong_type val) in simple_object_set_big_64() argument
331 buf[0] = (val >> 56) & 0xff; in simple_object_set_big_64()
332 buf[1] = (val >> 48) & 0xff; in simple_object_set_big_64()
333 buf[2] = (val >> 40) & 0xff; in simple_object_set_big_64()
334 buf[3] = (val >> 32) & 0xff; in simple_object_set_big_64()
335 buf[4] = (val >> 24) & 0xff; in simple_object_set_big_64()
336 buf[5] = (val >> 16) & 0xff; in simple_object_set_big_64()
337 buf[6] = (val >> 8) & 0xff; in simple_object_set_big_64()
338 buf[7] = val & 0xff; in simple_object_set_big_64()
344 simple_object_set_little_64 (unsigned char *buf, ulong_type val) in simple_object_set_little_64() argument
346 buf[7] = (val >> 56) & 0xff; in simple_object_set_little_64()
347 buf[6] = (val >> 48) & 0xff; in simple_object_set_little_64()
348 buf[5] = (val >> 40) & 0xff; in simple_object_set_little_64()
349 buf[4] = (val >> 32) & 0xff; in simple_object_set_little_64()
350 buf[3] = (val >> 24) & 0xff; in simple_object_set_little_64()
351 buf[2] = (val >> 16) & 0xff; in simple_object_set_little_64()
352 buf[1] = (val >> 8) & 0xff; in simple_object_set_little_64()
353 buf[0] = val & 0xff; in simple_object_set_little_64()