()
| 74 | } |
| 75 | |
| 76 | func (rac *readerAtWithCache) Size() int64 { |
| 77 | // local implementation in containerd technically provides a similar mechanism, so, this method not really useful |
| 78 | // by default - but obviously, this is implementation dependent |
| 79 | if rac.size == -1 { |
| 80 | rac.size = rac.ReaderAt.Size() |
| 81 | } |
| 82 | return rac.size |
| 83 | } |
| 84 | |
| 85 | func (rac *readerAtWithCache) Close() error { |
| 86 | err := rac.ReaderAt.Close() |
no outgoing calls