Home | History | Annotate | Download | only in applypatch

Lines Matching refs:tgt

607 unsigned char* MakePatch(ImageChunk* src, ImageChunk* tgt, size_t* size) {
608 if (tgt->type == CHUNK_NORMAL) {
609 if (tgt->len <= 160) {
610 tgt->type = CHUNK_RAW;
611 *size = tgt->len;
612 return tgt->data;
619 int r = bsdiff(src->data, src->len, &(src->I), tgt->data, tgt->len, ptemp);
634 if (tgt->type == CHUNK_NORMAL && tgt->len <= st.st_size) {
637 tgt->type = CHUNK_RAW;
638 *size = tgt->len;
639 return tgt->data;
657 tgt->source_start = src->start;
658 switch (tgt->type) {
660 tgt->source_len = src->len;
663 tgt->source_len = src->deflate_len;
664 tgt->source_uncompressed_len = src->len;
818 printf("usage: %s [-z] [-b <bonus-file>] <src-img> <tgt-img> <patch-file>\n",