Lines Matching defs:len
154 uint32_t crc32(uchar * buf, uint32_t len)
160 for (i = 0; i < len; i++) {
241 long i, len = lseek(fd, 0, SEEK_END);
243 uchar *buf = malloc(len);
244 read(fd, buf, len);
251 buf[0x10] = len & 0xff;
252 buf[0x11] = (len >> 8) & 0xff;
253 buf[0x12] = (len >> 16) & 0xff;
254 buf[0x13] = (len >> 24) & 0xff;
262 *((uint32_t *) (buf + 0x18)) = len - 8;
263 buf[0x18] = (len - 8) & 0xff;
264 buf[0x19] = ((len - 8) >> 8) & 0xff;
265 buf[0x1a] = ((len - 8) >> 16) & 0xff;
266 buf[0x1b] = ((len - 8) >> 24) & 0xff;
271 } else if (len == buf[0x10] | ((uint32_t)buf[0x11] << 8) | ((uint32_t)buf[0x12] << 16) | ((uint32_t)buf[0x13] << 24)) {
275 } else if (len == (buf[0x18] | ((uint32_t)buf[0x19] << 8) | ((uint32_t)buf[0x1a] << 16) | ((uint32_t)buf[0x1b] << 24)) + 8) {
321 sum = crc32(buf - 0x4, len - 0x4);
323 len - 0x4);