Ignore:
Timestamp:
May 7, 2018, 1:15:37 PM (12 months ago)
Author:
xwa163
Message:
  1. New version of lz4_swizzled_match_copy kernel with higher performance
  2. Adjust related pipeline code
  3. Remove legacy comments
File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/lz4FrameDecoder.h

    r5849 r6020  
    1818class LZ4FrameDecoder {
    1919public:
    20     LZ4FrameDecoder(const std::string & filename);
     20
     21    LZ4FrameDecoder(const std::string &filename);
     22    LZ4FrameDecoder();
     23
     24    void init(const std::string &filename);
    2125
    2226    size_t getBlocksStart() const {
     
    3943    }
    4044
     45protected:
     46    virtual size_t endMarkSize() const;
     47    virtual size_t contentChecksumSize() const;
     48
    4149private:
    4250    bool mValid = false;
     
    4856    bool mHasBlockChecksum;
    4957
    50     bool decodeFrameDescriptor(std::ifstream & f);
     58    bool decodeFrameDescriptor(std::ifstream &f);
     59
     60    size_t getMinFileSize() {
     61        return 4 +         // Magic number
     62               3 +         // Frame descriptor (3-11 bytes)
     63               this->endMarkSize();          // End mark
     64    }
    5165};
    5266
Note: See TracChangeset for help on using the changeset viewer.