/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 2003-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Phong Vo <kpv@research.att.com> *
* *
***********************************************************************/
#include "vcdhdr.h"
/* Transforming data by byte-wise differencing
**
** Written by Kiem-Phong Vo (kpv@research.att.com)
*/
#if __STD_C
#else
#endif
{
if(!vc)
return -1;
/* target data to be transformed */
return tarsz;
return -1;
/* source data to diff against */
return -1;
return -1;
if(srcsz <= 0) /* no source data, just copy */
else /* transform data */
for(s = 0; s < maxs; ++s, ++t)
}
}
return -1;
if(out)
return tarsz;
}
#if __STD_C
#else
#endif
{
if(!vc)
return -1;
/* retrieve transformed target data */
return tarsz;
return -1;
return -1;
/* source data to diff against */
return -1;
return -1;
if(srcsz <= 0)
else
for(s = 0; s < maxs; ++s, ++t)
}
}
if(out)
return tarsz;
}
{ hamming,
0,
"hamming", "Byte-wise differencing (like Hamming distance).",
"[-version?hamming (AT&T Research) 2003-01-01]" USAGE_LICENSE,
0,
1024*1024,
};