"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "testing/file.h" between
xdelta3-3.0.11.tar.gz and xdelta3-3.1.0.tar.gz

About: xdelta is a tool and library for differential compression (supports VCDIFF encoding and decoding). Beta version.

file.h  (xdelta3-3.0.11):file.h  (xdelta3-3.1.0)
skipping to change at line 65 skipping to change at line 65
memcpy(data_ + size_, data, size); memcpy(data_ + size_, data, size);
size_ += size; size_ += size;
} }
// For cleaing a block // For cleaing a block
void Reset() { void Reset() {
size_ = 0; size_ = 0;
} }
void Print() const { // Note: This does not benefit from -Wformat= checking, due to the
xoff_t pos = 0; // enclosing template. Further, it was not used.
for (size_t i = 0; i < Size(); i++) { // void Print() const {
if (pos % 16 == 0) { // xoff_t pos = 0;
DP(RINT "%5"Q"x: ", pos); // for (size_t i = 0; i < Size(); i++) {
} // if (pos % 16 == 0) {
DP(RINT "%02x ", (*this)[i]); // DP(RINT "%5" Q "x: ", pos);
if (pos % 16 == 15) { // }
DP(RINT "\n"); // DP(RINT "%02x ", (*this)[i]);
} // if (pos % 16 == 15) {
pos++; // DP(RINT "\n");
} // }
DP(RINT "\n"); // pos++;
} // }
// DP(RINT "\n");
// }
void WriteTmpFile(TmpFile *f) const { void WriteTmpFile(TmpFile *f) const {
f->Append(this); f->Append(this);
} }
void SetSize(size_t size) { void SetSize(size_t size) {
uint8_t *t = NULL; uint8_t *t = NULL;
if (data_size_ < size) { if (data_size_ < size) {
if (data_) { if (data_) {
t = data_; t = data_;
 End of changes. 1 change blocks. 
14 lines changed or deleted 16 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS