Lines Matching defs:array

73  * Get the unsigned char value in the array at given offset
76 _get_byte(SANE_Byte* array, SANE_Byte offset) {
77 return *(array+offset);
81 * Set the array at given offset to the given unsigned char value
84 _set_byte(SANE_Byte val, SANE_Byte* array, SANE_Byte offset) {
85 *(array+offset) = val;
90 * Get the unsigned short value in the array at given offset.
95 _get_short(SANE_Byte* array, SANE_Byte offset) {
96 SANE_Int i = *(array+offset+1);
98 i += *(array+offset);
104 * Put the bytes of a short int value into an unsigned char array
108 _set_short(SANE_Word val, SANE_Byte* array, SANE_Byte offset) {
109 *(array+offset) = val & 0xFF;
110 *(array+offset+1) = (val>>8) & 0xFF;
115 * Get the signed int value in the array at given offset.
119 _get_int(SANE_Byte* array, SANE_Byte offset) {
120 SANE_Int i = *(array+offset+3);
122 i += *(array+offset+2);
124 i += *(array+offset+1);
126 i += *(array+offset);
132 * Put the bytes of a signed int value into an unsigned char array
136 _set_int(SANE_Word val, SANE_Byte* array, SANE_Byte offset) {
137 *(array+offset) = val & 0xFF;
138 *(array+offset+1) = (val>>8) & 0xFF;
139 *(array+offset+2) = (val>>16) & 0xFF;
140 *(array+offset+3) = (val>>24) & 0xFF;
157 * Get count unsigned short values in the array at given offset.
172 * Copy an unsigned short array of given size
439 * Read scanned data from the scanner memory into a byte array. The lines
807 * 5340 byte array which consists only contains the values 0x00 and 0x70. A
1197 * Prepare SCSI_COMMAND_LEN-byte command array with command code and size value