NewFile returns a new BufferAt backed by "file" with max-size N.
(N int64, file File)
| 27 | |
| 28 | // NewFile returns a new BufferAt backed by "file" with max-size N. |
| 29 | func NewFile(N int64, file File) BufferAt { |
| 30 | return &fileBuffer{ |
| 31 | file: file, |
| 32 | Wrapper: wrapio.NewWrapper(file, 0, 0, N), |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | func init() { |
| 37 | gob.Register(&fileBuffer{}) |
searching dependent graphs…