Lines Matching refs:newInfo

80     BlockBuffer newInfo = {newBuffer.memory, newBuffer.length};

84 ret = blockdiff->MakePatch(newInfo, oldInfo, patchSize);
95 int32_t BlocksDiff::MakePatch(const BlockBuffer &newInfo,
102 int32_t ret = blockdiff->MakePatch(newInfo, oldInfo, patchSize);
116 int32_t BlocksDiff::MakePatch(const BlockBuffer &newInfo,
121 int32_t ret = blockdiff->MakePatch(newInfo, oldInfo, patchSize);
131 int32_t BlocksDiff::MakePatch(const BlockBuffer &newInfo, const BlockBuffer &oldInfo, size_t &patchSize)
143 int32_t ret = GetCtrlDatas(newInfo, oldInfo, controlDatas);
149 return WritePatchData(controlDatas, newInfo, patchSize);
153 const BlockBuffer &newInfo, size_t &patchSize)
189 ret = WritePatchHeader(controlSize, diffDataSize, newInfo.length, headerLen);
274 void BlocksDiff::ComputeOldScore(const BlockBuffer &newInfo,
277 int64_t newSize = static_cast<int64_t>(newInfo.length);
279 BlockBuffer newBuff = {newInfo.buffer + currentOffset_, newInfo.length - currentOffset_};
283 && (oldInfo.buffer[begin + lastOffset_] == newInfo.buffer[begin])) {
291 (oldInfo.buffer[currentOffset_ + lastOffset_] == newInfo.buffer[currentOffset_])) {
297 void BlocksDiff::ComputeLength(const BlockBuffer &newInfo,
306 if (oldInfo.buffer[lastPos_ + i] == newInfo.buffer[lastScan_ + i]) {
317 if (currentOffset_ < static_cast<int64_t>(newInfo.length)) {
319 if (oldInfo.buffer[matchPos_ - i] == newInfo.buffer[currentOffset_ - i]) {
335 if (newInfo.buffer[lastScan_ + lengthFront - overlap + i] ==
339 if (newInfo.buffer[currentOffset_ - lengthBack + i] == oldInfo.buffer[matchPos_ - lengthBack + i]) {
352 int32_t BlocksDiff::GetCtrlDatas(const BlockBuffer &newInfo,
356 while (currentOffset_ < static_cast<int64_t>(newInfo.length)) {
360 ComputeOldScore(newInfo, oldInfo, oldScore, matchLen);
361 if ((matchLen == oldScore) && (currentOffset_ != static_cast<int64_t>(newInfo.length))) {
364 ComputeLength(newInfo, oldInfo, lenFront, lenBack);
371 ctrlData.diffNewStart = &newInfo.buffer[lastScan_];
373 ctrlData.extraNewStart = &newInfo.buffer[lastScan_ + lenFront];
641 int64_t SuffixArray<DataType>::Search(const BlockBuffer &newInfo,
649 x = MatchLength(oldStart, newInfo);
650 y = MatchLength(oldEnd, newInfo);
661 newInfo.buffer, MIN(oldInfo.length - suffixArray_[x], newInfo.length)) < 0) {
662 return Search(newInfo, oldInfo, x, end, pos);
664 return Search(newInfo, oldInfo, start, x, pos);