NewObjectScannerFrom returns a new `*ObjectScanner` populated with data from the given `io.Reader`, "r". It supplies no close function, and discards any input given to the Scan() function.
(db *gitobj.ObjectDatabase)
| 59 | // the given `io.Reader`, "r". It supplies no close function, and discards any |
| 60 | // input given to the Scan() function. |
| 61 | func NewObjectScannerFrom(db *gitobj.ObjectDatabase) *ObjectScanner { |
| 62 | return &ObjectScanner{gitobj: db} |
| 63 | } |
| 64 | |
| 65 | // Scan scans for a particular object given by the "oid" parameter. Once the |
| 66 | // scan is complete, the Contents(), Sha1(), Size() and Type() functions may be |
no outgoing calls