Lines Matching refs:tempBuffer
655 char *tempBuffer = NULL;
676 tempBuffer = malloc(UNALIGNED_BLOCK_SIZE);
677 assert(tempBuffer);
683 actual = pread(fd, tempBuffer, UNALIGNED_BLOCK_SIZE, offset - block_offset);
689 memcpy(buffer, &tempBuffer[offset & UNALIGNED_BLOCK_MASK], tail_length);
727 if (tempBuffer == NULL)
728 tempBuffer = malloc(UNALIGNED_BLOCK_SIZE);
729 assert(tempBuffer);
735 actual = pread(fd, tempBuffer, UNALIGNED_BLOCK_SIZE, offset);
741 memcpy(buffer, tempBuffer, length);
745 if (tempBuffer)
747 free(tempBuffer);
748 tempBuffer = NULL;