NewWrapper creates a Wrapper based on ReadWriterAt rwa. L is the current length, O is the current offset, and N is offset at which we "wrap".
(rwa ReadWriterAt, L, O, N int64)
| 28 | // NewWrapper creates a Wrapper based on ReadWriterAt rwa. |
| 29 | // L is the current length, O is the current offset, and N is offset at which we "wrap". |
| 30 | func NewWrapper(rwa ReadWriterAt, L, O, N int64) *Wrapper { |
| 31 | return &Wrapper{ |
| 32 | L: L, |
| 33 | O: O, |
| 34 | N: N, |
| 35 | rwa: rwa, |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | // Len returns the # of bytes in the Wrapper |
| 40 | func (wpr *Wrapper) Len() int64 { |
no outgoing calls
searching dependent graphs…