Lines Matching refs:bytes
154 _lto2b(SANE_Int val, SANE_Byte *bytes)
158 bytes[0] = (val >> 8) & 0xff;
159 bytes[1] = val & 0xff;
163 _lto3b(SANE_Int val, SANE_Byte *bytes)
167 bytes[0] = (val >> 16) & 0xff;
168 bytes[1] = (val >> 8) & 0xff;
169 bytes[2] = val & 0xff;
173 _lto4b(SANE_Int val, SANE_Byte *bytes)
176 bytes[0] = (val >> 24) & 0xff;
177 bytes[1] = (val >> 16) & 0xff;
178 bytes[2] = (val >> 8) & 0xff;
179 bytes[3] = val & 0xff;
183 _2btol(SANE_Byte *bytes)
187 rv = (bytes[0] << 8) |
188 bytes[1];
193 _3btol(SANE_Byte *bytes)
197 rv = (bytes[0] << 16) |
198 (bytes[1] << 8) |
199 bytes[2];
204 _4btol(SANE_Byte *bytes)
208 rv = (bytes[0] << 24) |
209 (bytes[1] << 16) |
210 (bytes[2] << 8) |
211 bytes[3];
379 SANE_Byte more_pages[243]; /* maximum size 255 bytes (incl header) */