Home | History | Annotate | Download | only in applypatch

Lines Matching defs:type_

172       : type_(type),
184 return type_;
199 printf("type %d start %zu len %zu\n", type_, start_, DataLengthForPatch());
237 int type_; // CHUNK_NORMAL, CHUNK_DEFLATE, CHUNK_RAW
263 if (type_ == CHUNK_DEFLATE) {
270 if (type_ == CHUNK_DEFLATE) {
277 if (type_ != other.type_) {
286 if (type_ == CHUNK_NORMAL) {
288 } else if (type_ == CHUNK_DEFLATE) {
303 if (type_ != CHUNK_DEFLATE) {
313 if (type_ == CHUNK_RAW) {
315 } else if (type_ == CHUNK_NORMAL && (raw_data_len_ <= 160 || raw_data_len_ < patch_size)) {
316 type_ = CHUNK_RAW;
323 if (type_ != CHUNK_DEFLATE) return;
324 type_ = CHUNK_NORMAL;
335 switch (type_) {
343 CHECK(false) << "unexpected chunk type: " << type_; // Should not reach here.
349 Write4(fd, type_);
350 switch (type_) {
379 CHECK(false) << "unexpected chunk type: " << type_;
385 if (type_ != CHUNK_NORMAL || other.type_ != CHUNK_NORMAL) {
397 if (type_ != CHUNK_DEFLATE) {