NewTreeIter takes a storer.EncodedObjectStorer and a storer.EncodedObjectIter and returns a *TreeIter that iterates over all tree contained in the storer.EncodedObjectIter. Any non-tree object returned by the storer.EncodedObjectIter is skipped.
(s storer.EncodedObjectStorer, iter storer.EncodedObjectIter)
| 511 | // |
| 512 | // Any non-tree object returned by the storer.EncodedObjectIter is skipped. |
| 513 | func NewTreeIter(s storer.EncodedObjectStorer, iter storer.EncodedObjectIter) *TreeIter { |
| 514 | return &TreeIter{iter, s} |
| 515 | } |
| 516 | |
| 517 | // Next moves the iterator to the next tree and returns a pointer to it. If |
| 518 | // there are no more trees, it returns io.EOF. |
no outgoing calls