/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
GeneratorInterface/ReggeGribovPartonMCInterface/src/LzmaFile.h
70 строк
1 KB
Cms Build
Clang-Format
20 май 2019, 13:04
20 май 2019, 13:04
dc36a12
Код
Авторство
О чём код?
#ifndef _include_LzmaFile_h_ #define _include_LzmaFile_h_ #include "Types.h" #include "7zFile.h" #include "LzmaDec.h" #include <string> #include <queue> #include "LzmaDec.h" #include "Alloc.h" #include "Types.h" #include "7zFile.h" #include <sstream> #include <string> #include <iostream> #include <queue> #define IN_BUF_SIZE (1 << 16) #define OUT_BUF_SIZE (1 << 16) struct LzmaFile { LzmaFile(); SRes Open(const std::string& fileName); SRes Close(); SRes DecodeAll(); SRes DecodeBuffer(); //SRes DecodeArray(double* data, const int length); SRes ReadNextNumber(double& data); SRes FillArray(double* data, const int length); CFileSeqInStream inStream; int res; CLzmaDec state; // std::ostringstream fStrNumber; UInt64 unpackSize; Byte inBuf[IN_BUF_SIZE]; Byte outBuf[OUT_BUF_SIZE]; std::queue<double> fStorage; size_t inPos; size_t inSize; size_t outPos; // string converting bool fStartNumber; bool fReadSign; bool fReadMantisseR; bool fReadMantisseF; bool fReadExponentSign; bool fReadExponent; bool fNegative; bool fExponentNegative; double fMantisseR; double fMantisseF; int fMantisseFcount; int fExponent; }; #endif