12345678910111213141516171819202122 |
- package bufio
- import (
- "io"
- )
- type Reader struct {
- buf [][]byte
- R io.ReadSeeker
- }
- func NewReaderSize(r io.ReadSeeker, size int) *Reader {
- buf := make([]byte, size*2)
- return &Reader{
- R: r,
- buf: [][]byte{buf[0:size], buf[size:]},
- }
- }
- func (self *Reader) ReadAt(b []byte, off int64) (n int, err error) {
- return
- }
|