Home | History | Annotate | Download | only in applypatch

Lines Matching refs:tgt

599 unsigned char* MakePatch(ImageChunk* src, ImageChunk* tgt, size_t* size) {
600 if (tgt->type == CHUNK_NORMAL) {
601 if (tgt->len <= 160) {
602 tgt->type = CHUNK_RAW;
603 *size = tgt->len;
604 return tgt->data;
611 int r = bsdiff(src->data, src->len, &(src->I), tgt->data, tgt->len, ptemp);
626 if (tgt->type == CHUNK_NORMAL && tgt->len <= st.st_size) {
629 tgt->type = CHUNK_RAW;
630 *size = tgt->len;
631 return tgt->data;
649 tgt->source_start = src->start;
650 switch (tgt->type) {
652 tgt->source_len = src->len;
655 tgt->source_len = src->deflate_len;
656 tgt->source_uncompressed_len = src->len;
777 printf("usage: %s [-z] <src-img> <tgt-img> <patch-file>\n",