Lines Matching refs:dataLen
701 static bool crcProcessFunction(const unsigned char *data, int dataLen, in crcProcessFunction() argument
704 *(unsigned long *)crc = crc32(*(unsigned long *)crc, data, dataLen); in crcProcessFunction()
737 static bool copyProcessFunction(const unsigned char *data, int dataLen, in copyProcessFunction() argument
741 if (dataLen <= args->bufLen) { in copyProcessFunction()
742 memcpy(args->buf, data, dataLen); in copyProcessFunction()
743 args->buf += dataLen; in copyProcessFunction()
744 args->bufLen -= dataLen; in copyProcessFunction()
770 static bool writeProcessFunction(const unsigned char *data, int dataLen, in writeProcessFunction() argument
777 ssize_t n = write(fd, data + soFar, dataLen - soFar); in writeProcessFunction()
780 dataLen - soFar, data + soFar, strerror(errno)); in writeProcessFunction()
786 if (soFar == dataLen) return true; in writeProcessFunction()
787 if (soFar > dataLen) { in writeProcessFunction()
789 soFar, dataLen); in writeProcessFunction()
816 static bool bufferProcessFunction(const unsigned char *data, int dataLen, in bufferProcessFunction() argument
821 memmove(bec->buffer, data, dataLen); in bufferProcessFunction()
822 bec->buffer += dataLen; in bufferProcessFunction()
823 bec->len -= dataLen; in bufferProcessFunction()