bytes.Buffer.off (field)
32 uses
bytes (current package)
buffer.go#L22: off int // read at &buf[off], write at &buf[len(buf)]
buffer.go#L54: func (b *Buffer) Bytes() []byte { return b.buf[b.off:] }
buffer.go#L65: return string(b.buf[b.off:])
buffer.go#L69: func (b *Buffer) empty() bool { return len(b.buf) <= b.off }
buffer.go#L73: func (b *Buffer) Len() int { return len(b.buf) - b.off }
buffer.go#L91: b.buf = b.buf[:b.off+n]
buffer.go#L99: b.off = 0
buffer.go#L120: if m == 0 && b.off != 0 {
buffer.go#L137: copy(b.buf, b.buf[b.off:])
buffer.go#L143: copy(buf, b.buf[b.off:])
buffer.go#L147: b.off = 0
buffer.go#L239: m, e := w.Write(b.buf[b.off:])
buffer.go#L243: b.off += m
buffer.go#L306: n = copy(p, b.buf[b.off:])
buffer.go#L307: b.off += n
buffer.go#L324: data := b.buf[b.off : b.off+n]
buffer.go#L325: b.off += n
buffer.go#L340: c := b.buf[b.off]
buffer.go#L341: b.off++
buffer.go#L357: c := b.buf[b.off]
buffer.go#L359: b.off++
buffer.go#L363: r, n := utf8.DecodeRune(b.buf[b.off:])
buffer.go#L364: b.off += n
buffer.go#L378: if b.off >= int(b.lastRead) {
buffer.go#L379: b.off -= int(b.lastRead)
buffer.go#L396: if b.off > 0 {
buffer.go#L397: b.off--
buffer.go#L418: i := IndexByte(b.buf[b.off:], delim)
buffer.go#L419: end := b.off + i + 1
buffer.go#L424: line = b.buf[b.off:end]
buffer.go#L425: b.off = end
![]() |
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. |