bufio.Reader.w (field)
31 uses
bufio (current package)
bufio.go#L35: r, w int // buf read and write positions
bufio.go#L90: copy(b.buf, b.buf[b.r:b.w])
bufio.go#L91: b.w -= b.r
bufio.go#L95: if b.w >= len(b.buf) {
bufio.go#L101: n, err := b.rd.Read(b.buf[b.w:])
bufio.go#L105: b.w += n
bufio.go#L138: for b.w-b.r < n && b.w-b.r < len(b.buf) && b.err == nil {
bufio.go#L143: return b.buf[b.r:b.w], ErrBufferFull
bufio.go#L148: if avail := b.w - b.r; avail < n {
bufio.go#L206: if b.r == b.w {
bufio.go#L226: b.w = 0
bufio.go#L234: b.w += n
bufio.go#L238: n = copy(p, b.buf[b.r:b.w])
bufio.go#L249: for b.r == b.w {
bufio.go#L267: if b.lastByte < 0 || b.r == 0 && b.w > 0 {
bufio.go#L275: b.w = 1
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#L291: if b.r == b.w {
bufio.go#L296: r, size = utf8.DecodeRune(b.buf[b.r:b.w])
bufio.go#L319: func (b *Reader) Buffered() int { return b.w - b.r }
bufio.go#L335: if i := bytes.IndexByte(b.buf[b.r+s:b.w], delim); i >= 0 {
bufio.go#L344: line = b.buf[b.r:b.w]
bufio.go#L345: b.r = b.w
bufio.go#L352: b.r = b.w
bufio.go#L358: s = b.w - b.r // do not rescan area we scanned before
bufio.go#L517: if b.w-b.r < len(b.buf) {
bufio.go#L521: for b.r < b.w {
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. |