Lines Matching refs:bytes
380 _lto2b (u_long val, SANE_Byte * bytes)
382 bytes[0] = (val >> 8) & 0xff;
383 bytes[1] = val & 0xff;
387 _lto3b (u_long val, SANE_Byte * bytes)
389 bytes[0] = (val >> 16) & 0xff;
390 bytes[1] = (val >> 8) & 0xff;
391 bytes[2] = val & 0xff;
395 _lto4b (u_long val, SANE_Byte * bytes)
397 bytes[0] = (val >> 24) & 0xff;
398 bytes[1] = (val >> 16) & 0xff;
399 bytes[2] = (val >> 8) & 0xff;
400 bytes[3] = val & 0xff;
404 _2btol (SANE_Byte * bytes)
408 rv = (bytes[0] << 8) | bytes[1];
414 _4btol (SANE_Byte * bytes)
418 rv = (bytes[0] << 24) | (bytes[1] << 16) | (bytes[2] << 8) | bytes[3];
425 _2btol(SANE_Byte *bytes)
429 rv = (bytes[0] << 8) | bytes[1];
434 _3btol (SANE_Byte * bytes)
438 rv = (bytes[0] << 16) | (bytes[1] << 8) | bytes[2];
444 _4btol(SANE_Byte *bytes)
448 rv = (bytes[0] << 24) |
449 (bytes[1] << 16) |
450 (bytes[2] << 8) |
451 bytes[3];