Searched refs:BlockHash (Results 1 – 6 of 6) sorted by relevance
/external/chromium/sdch/open-vcdiff/src/ |
D | blockhash.cc | 28 BlockHash::BlockHash(const char* source_data, in BlockHash() function in open_vcdiff::BlockHash 38 BlockHash::~BlockHash() { } in ~BlockHash() 43 COMPILE_ASSERT(BlockHash::kBlockSize >= 2, kBlockSize_must_be_at_least_2); 52 COMPILE_ASSERT((BlockHash::kBlockSize & (BlockHash::kBlockSize - 1)) == 0, 55 bool BlockHash::Init(bool populate_hash_table) { in Init() 80 const BlockHash* BlockHash::CreateDictionaryHash(const char* dictionary_data, in CreateDictionaryHash() 82 BlockHash* new_dictionary_hash = new BlockHash(dictionary_data, in CreateDictionaryHash() 93 BlockHash* BlockHash::CreateTargetHash(const char* target_data, in CreateTargetHash() 96 BlockHash* new_target_hash = new BlockHash(target_data, in CreateTargetHash() 108 size_t BlockHash::CalcTableSize(const size_t dictionary_size) { in CalcTableSize() [all …]
|
D | vcdiffengine.cc | 51 hashed_dictionary_ = BlockHash::CreateDictionaryHash(dictionary_, in Init() 57 if (!RollingHash<BlockHash::kBlockSize>::Init()) { in Init() 85 const BlockHash* target_hash, in EncodeCopyForBestMatch() 90 BlockHash::Match best_match; in EncodeCopyForBestMatch() 165 if (target_size < static_cast<size_t>(BlockHash::kBlockSize)) { in EncodeInternal() 170 RollingHash<BlockHash::kBlockSize> hasher; in EncodeInternal() 171 BlockHash* target_hash = NULL; in EncodeInternal() 175 target_hash = BlockHash::CreateTargetHash(target_data, in EncodeInternal() 184 const char* const start_of_last_block = target_end - BlockHash::kBlockSize; in EncodeInternal() 228 candidate_pos[BlockHash::kBlockSize]); in EncodeInternal()
|
D | blockhash.h | 46 class BlockHash { 123 BlockHash(const char* source_data, size_t source_size, int starting_offset); 125 ~BlockHash(); 168 static const BlockHash* CreateDictionaryHash(const char* dictionary_data, 170 static BlockHash* CreateTargetHash(const char* target_data, 501 BlockHash(const BlockHash&); // NOLINT 502 void operator=(const BlockHash&);
|
D | blockhash_test.cc | 28 const int kBlockSize = BlockHash::kBlockSize; 36 dh_.reset(BlockHash::CreateDictionaryHash(sample_text, in BlockHashTest() 38 th_.reset(BlockHash::CreateTargetHash(sample_text, strlen(sample_text), 0)); in BlockHashTest() 46 return BlockHash::BlockContentsMatch(block1, block2); in BlockContentsMatch() 49 int FirstMatchingBlock(const BlockHash& block_hash, in FirstMatchingBlock() 55 int NextMatchingBlock(const BlockHash& block_hash, in NextMatchingBlock() 64 return BlockHash::MatchingBytesToLeft(source_match_start, in MatchingBytesToLeft() 72 return BlockHash::MatchingBytesToRight(source_match_end, in MatchingBytesToRight() 235 std::auto_ptr<const BlockHash> dh_; // hash table is populated at startup 236 std::auto_ptr<BlockHash> th_; // hash table not populated; [all …]
|
D | vcdiffengine.h | 25 class BlockHash; variable 100 const BlockHash* target_hash, 118 const BlockHash* hashed_dictionary_;
|
D | vcencoder_test.cc | 709 if (BlockHash::kBlockSize < 16) { in TEST_F() 729 } else if (BlockHash::kBlockSize <= 56) { in TEST_F() 765 if (BlockHash::kBlockSize < 16) { in TEST_F() 769 } else if (BlockHash::kBlockSize <= 56) { in TEST_F() 924 if (BlockHash::kBlockSize <= 8) { in TEST_F() 967 if (BlockHash::kBlockSize <= 8) { in TEST_F() 1002 if (BlockHash::kBlockSize <= 8) { in TEST_F()
|