Start work on porting Go rsync implementation to C

This commit is contained in:
Kovid Goyal
2023-07-14 15:45:04 +05:30
parent 85df15bfc3
commit fabb6bd8cc
7 changed files with 280 additions and 484 deletions

View File

@@ -226,7 +226,7 @@ type signature_iterator struct {
index uint64
}
// ans is valid only iff err == nil
// ans is valid iff err == nil
func (self *signature_iterator) next() (ans BlockHash, err error) {
n, err := io.ReadAtLeast(self.src, self.buffer, cap(self.buffer))
switch err {