bufio.Reader.buf (field)
31 uses
bufio (current package)
bufio.go#L33: buf []byte
bufio.go#L50: if ok && len(b.buf) >= size {
bufio.go#L67: func (b *Reader) Size() int { return len(b.buf) }
bufio.go#L72: b.reset(b.buf, r)
bufio.go#L77: buf: buf,
bufio.go#L90: copy(b.buf, b.buf[b.r:b.w])
bufio.go#L95: if b.w >= len(b.buf) {
bufio.go#L101: n, err := b.rd.Read(b.buf[b.w:])
bufio.go#L138: for b.w-b.r < n && b.w-b.r < len(b.buf) && b.err == nil {
bufio.go#L142: if n > len(b.buf) {
bufio.go#L143: return b.buf[b.r:b.w], ErrBufferFull
bufio.go#L156: return b.buf[b.r : b.r+n], err
bufio.go#L210: if len(p) >= len(b.buf) {
bufio.go#L227: n, b.err = b.rd.Read(b.buf)
bufio.go#L238: n = copy(p, b.buf[b.r:b.w])
bufio.go#L240: b.lastByte = int(b.buf[b.r-1])
bufio.go#L255: c := b.buf[b.r]
bufio.go#L277: b.buf[b.r] = byte(b.lastByte)
bufio.go#L287: for b.r+utf8.UTFMax > b.w && !utf8.FullRune(b.buf[b.r:b.w]) && b.err == nil && b.w-b.r < len(b.buf) {
bufio.go#L294: r, size = rune(b.buf[b.r]), 1
bufio.go#L296: r, size = utf8.DecodeRune(b.buf[b.r:b.w])
bufio.go#L299: b.lastByte = int(b.buf[b.r-1])
bufio.go#L335: if i := bytes.IndexByte(b.buf[b.r+s:b.w], delim); i >= 0 {
bufio.go#L337: line = b.buf[b.r : b.r+i+1]
bufio.go#L344: line = b.buf[b.r:b.w]
bufio.go#L351: if b.Buffered() >= len(b.buf) {
bufio.go#L353: line = b.buf
bufio.go#L517: if b.w-b.r < len(b.buf) {
bufio.go#L542: n, err := w.Write(b.buf[b.r:b.w])
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |