9srv Manual Collection/plan9/venti-zero(2) | 9srv Manual Collection/plan9/venti-zero(2) |
---|
uint vtzerotruncate(int type, uchar *buf, uint size)
void vtzeroextend(int type, uchar *buf, uint size, uint newsize)
extern uchar vtzeroscore[VtScoreSize];
Vtzerotruncate returns the size of the size-byte buffer pointed to by buf ignoring trailing zeros or zero scores, according to the given type.
Vtzeroextend pads buf with zeros or zero scores, according to the given type, to grow it from size bytes to newsize bytes.
Vtzeroscore is the score of the zero-length block.
9srv Manual Collection/plan9/venti-zero(2) | Rev: Sun Dec 02 23:42:21 GMT 2007 |