ckb-next  v0.2.8 at branch master
ckb-next driver for corsair devices
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JlCompress.cpp File Reference
#include "JlCompress.h"
#include <QDebug>
+ Include dependency graph for JlCompress.cpp:

Go to the source code of this file.

Functions

static bool copyData (QIODevice &inFile, QIODevice &outFile)
 

Function Documentation

static bool copyData ( QIODevice inFile,
QIODevice outFile 
)
static

Definition at line 29 of file JlCompress.cpp.

Referenced by JlCompress::compressFile(), and JlCompress::extractFile().

30 {
31  while (!inFile.atEnd()) {
32  char buf[4096];
33  qint64 readLen = inFile.read(buf, 4096);
34  if (readLen <= 0)
35  return false;
36  if (outFile.write(buf, readLen) != readLen)
37  return false;
38  }
39  return true;
40 }

+ Here is the caller graph for this function: