5 /* score of a zero length block */
6 uchar vtZeroScore[VtScoreSize] = {
7 0xda, 0x39, 0xa3, 0xee, 0x5e, 0x6b, 0x4b, 0x0d, 0x32, 0x55,
8 0xbf, 0xef, 0x95, 0x60, 0x18, 0x90, 0xaf, 0xd8, 0x07, 0x09
13 vtZeroExtend(int type, uchar *buf, int n, int nn)
19 memset(buf+n, 0, nn-n);
31 p = buf + (n/VtScoreSize)*VtScoreSize;
32 ep = buf + (nn/VtScoreSize)*VtScoreSize;
34 memmove(p, vtZeroScore, VtScoreSize);
37 memset(p, 0, buf+nn-p);
44 vtZeroTruncate(int type, uchar *buf, int n)
50 for(p = buf + n; p > buf; p--) {
69 /* ignore slop at end of block */
70 p = buf + (n/VtScoreSize)*VtScoreSize;
73 if(memcmp(p - VtScoreSize, vtZeroScore, VtScoreSize) != 0)