type bytes.Buffer
74 uses
bytes (current package)
buffer.go#L20: type Buffer struct {
buffer.go#L54: func (b *Buffer) Bytes() []byte { return b.buf[b.off:] }
buffer.go#L60: func (b *Buffer) AvailableBuffer() []byte { return b.buf[len(b.buf):] }
buffer.go#L66: func (b *Buffer) String() string {
buffer.go#L75: func (b *Buffer) empty() bool { return len(b.buf) <= b.off }
buffer.go#L79: func (b *Buffer) Len() int { return len(b.buf) - b.off }
buffer.go#L83: func (b *Buffer) Cap() int { return cap(b.buf) }
buffer.go#L86: func (b *Buffer) Available() int { return cap(b.buf) - len(b.buf) }
buffer.go#L91: func (b *Buffer) Truncate(n int) {
buffer.go#L106: func (b *Buffer) Reset() {
buffer.go#L115: func (b *Buffer) tryGrowByReslice(n int) (int, bool) {
buffer.go#L126: func (b *Buffer) grow(n int) int {
buffer.go#L164: func (b *Buffer) Grow(n int) {
buffer.go#L175: func (b *Buffer) Write(p []byte) (n int, err error) {
buffer.go#L187: func (b *Buffer) WriteString(s string) (n int, err error) {
buffer.go#L206: func (b *Buffer) ReadFrom(r io.Reader) (n int64, err error) {
buffer.go#L258: func (b *Buffer) WriteTo(w io.Writer) (n int64, err error) {
buffer.go#L285: func (b *Buffer) WriteByte(c byte) error {
buffer.go#L299: func (b *Buffer) WriteRune(r rune) (n int, err error) {
buffer.go#L318: func (b *Buffer) Read(p []byte) (n int, err error) {
buffer.go#L340: func (b *Buffer) Next(n int) []byte {
buffer.go#L356: func (b *Buffer) ReadByte() (byte, error) {
buffer.go#L373: func (b *Buffer) ReadRune() (r rune, size int, err error) {
buffer.go#L396: func (b *Buffer) UnreadRune() error {
buffer.go#L413: func (b *Buffer) UnreadByte() error {
buffer.go#L430: func (b *Buffer) ReadBytes(delim byte) (line []byte, err error) {
buffer.go#L439: func (b *Buffer) readSlice(delim byte) (line []byte, err error) {
buffer.go#L458: func (b *Buffer) ReadString(delim byte) (line string, err error) {
buffer.go#L472: func NewBuffer(buf []byte) *Buffer { return &Buffer{buf: buf} }
buffer.go#L480: func NewBufferString(s string) *Buffer {
buffer.go#L481: return &Buffer{buf: []byte(s)}
crypto/tls
auth.go#L83: b := &bytes.Buffer{}
conn.go#L101: rawInput bytes.Buffer // raw input, starting with a record header
conn.go#L103: hand bytes.Buffer // handshake data waiting to be read
encoding/json
encode.go#L252: bytes.Buffer // accumulated output
indent.go#L14: func HTMLEscape(dst *bytes.Buffer, src []byte) {
indent.go#L41: func Compact(dst *bytes.Buffer, src []byte) error {
indent.go#L110: func Indent(dst *bytes.Buffer, src []byte, prefix, indent string) error {
encoding/pem
pem.go#L311: var buf bytes.Buffer
github.com/go-faster/errors
adaptor.go#L130: buf bytes.Buffer
github.com/go-faster/jx
dec_capture.go#L17: buf bytes.Buffer
github.com/gotd/td/internal/mtproxy/faketls
faketls.go#L23: readBuf bytes.Buffer
faketls.go#L34: readBuf: bytes.Buffer{},
github.com/gotd/td/internal/proto
gzip.go#L87: buf := gzipBufPool.Get().(*bytes.Buffer)
github.com/klauspost/compress/flate
inflate_gen.go#L22: fr := f.r.(*bytes.Buffer)
inflate_gen.go#L1270: case *bytes.Buffer:
go.opentelemetry.io/otel/attribute
encoder.go#L93: return &bytes.Buffer{}
encoder.go#L103: buf := d.pool.Get().(*bytes.Buffer)
encoder.go#L132: func copyAndEscape(buf *bytes.Buffer, val string) {
go.uber.org/multierr
error.go#L179: return &bytes.Buffer{}
error.go#L228: buff := _bufferPool.Get().(*bytes.Buffer)
mime/multipart
formdata.go#L140: var b bytes.Buffer
writer.go#L103: var b bytes.Buffer
net/http
h2_bundle.go#L1575: var buf bytes.Buffer
h2_bundle.go#L1582: func (h http2FrameHeader) writeDebug(buf *bytes.Buffer) {
h2_bundle.go#L1726: debugFramerBuf *bytes.Buffer
h2_bundle.go#L1778: f.debugFramerBuf = new(bytes.Buffer)
h2_bundle.go#L3019: var buf bytes.Buffer
h2_bundle.go#L4417: headerWriteBuf bytes.Buffer
h2_bundle.go#L4480: func (sc *http2serverConn) HeaderEncoder() (*hpack.Encoder, *bytes.Buffer) {
h2_bundle.go#L7429: hbuf bytes.Buffer // HPACK encoder writes into this
h2_bundle.go#L10298: HeaderEncoder() (*hpack.Encoder, *bytes.Buffer)
request.go#L900: case *bytes.Buffer:
server.go#L3433: wbuf bytes.Buffer
transfer.go#L1099: case *bytes.Reader, *bytes.Buffer, *strings.Reader:
rsc.io/qr
png.go#L30: buf bytes.Buffer
png.go#L179: bytes bytes.Buffer
vendor/golang.org/x/net/http2/hpack
hpack.go#L94: saveBuf bytes.Buffer
hpack.go#L513: buf := bufPool.Get().(*bytes.Buffer)
huffman.go#L15: New: func() interface{} { return new(bytes.Buffer) },
huffman.go#L22: buf := bufPool.Get().(*bytes.Buffer)
huffman.go#L33: buf := bufPool.Get().(*bytes.Buffer)
huffman.go#L49: func huffmanDecode(buf *bytes.Buffer, maxLen int, v []byte) error {
|
The pages are generated with Golds v0.6.7. (GOOS=linux 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. |