Lines Matching refs:trailer
361 unsigned char trailer[8]; /* Trailer CRC and length */ in cupsFileClose() local
390 trailer[0] = (unsigned char)fp->crc; in cupsFileClose()
391 trailer[1] = (unsigned char)(fp->crc >> 8); in cupsFileClose()
392 trailer[2] = (unsigned char)(fp->crc >> 16); in cupsFileClose()
393 trailer[3] = (unsigned char)(fp->crc >> 24); in cupsFileClose()
394 trailer[4] = (unsigned char)fp->pos; in cupsFileClose()
395 trailer[5] = (unsigned char)(fp->pos >> 8); in cupsFileClose()
396 trailer[6] = (unsigned char)(fp->pos >> 16); in cupsFileClose()
397 trailer[7] = (unsigned char)(fp->pos >> 24); in cupsFileClose()
399 if (cups_write(fp, (char *)trailer, 8) < 0) in cupsFileClose()
2425 unsigned char trailer[8]; /* Trailer bytes */ in cups_fill() local
2431 if (fp->stream.avail_in > sizeof(trailer)) in cups_fill()
2432 tbytes = (ssize_t)sizeof(trailer); in cups_fill()
2436 memcpy(trailer, fp->stream.next_in, (size_t)tbytes); in cups_fill()
2441 if (tbytes < (ssize_t)sizeof(trailer)) in cups_fill()
2443 …if (read(fp->fd, trailer + tbytes, sizeof(trailer) - (size_t)tbytes) < ((ssize_t)sizeof(trailer) -… in cups_fill()
2458 tcrc = ((((((uLong)trailer[3] << 8) | (uLong)trailer[2]) << 8) | in cups_fill()
2459 (uLong)trailer[1]) << 8) | (uLong)trailer[0]; in cups_fill()