(n int)
| 135 | func (p *page) Size() int64 { return int64(p.length) } |
| 136 | |
| 137 | func (p *page) Truncate(n int) { |
| 138 | if n < p.length { |
| 139 | p.length = n |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | func (p *page) ReadAt(b []byte, off int64) (int, error) { |
| 144 | if off -= p.offset; off < 0 || off > pageSize { |
no outgoing calls