(t plumbing.ObjectType, size int64)
| 62 | } |
| 63 | |
| 64 | func (w *Writer) prepareForWrite(t plumbing.ObjectType, size int64) { |
| 65 | w.pending = size |
| 66 | |
| 67 | w.hasher = plumbing.NewHasher(t, size) |
| 68 | w.multi = io.MultiWriter(w.zlib, w.hasher) |
| 69 | } |
| 70 | |
| 71 | // Write writes the object's contents. Write returns the error ErrOverflow if |
| 72 | // more than size bytes are written after WriteHeader. |
no test coverage detected