| 36 | } |
| 37 | |
| 38 | type PagedReader struct { |
| 39 | mu sync.Mutex |
| 40 | |
| 41 | reader io.ReaderAt |
| 42 | pagesize int64 |
| 43 | lru *LRU |
| 44 | |
| 45 | // The size of the file |
| 46 | size int64 |
| 47 | |
| 48 | freelist *FreeList |
| 49 | |
| 50 | Hits int64 |
| 51 | Miss int64 |
| 52 | } |
| 53 | |
| 54 | func (self *PagedReader) SetSize(size int64) { |
| 55 | self.mu.Lock() |
nothing calls this directly
no outgoing calls
no test coverage detected