bytes.Buffer.Write (method)
95 uses
bytes (current package)
buffer.go#L168: func (b *Buffer) Write(p []byte) (n int, err error) {
crypto/tls
auth.go#L84: b.Write(signaturePadding)
auth.go#L86: b.Write(transcript.Sum(nil))
conn.go#L747: c.hand.Write(data)
encoding/json
encode.go#L201: dst.Write(src[start:i])
encode.go#L211: dst.Write(src[start:i])
encode.go#L219: dst.Write(src[start:])
encode.go#L556: e.Write(b)
encode.go#L567: e.Write(b)
encode.go#L608: e.Write(b)
encode.go#L846: e.Write(dst)
encode.go#L852: e.Write(dst)
encode.go#L1111: e.Write(s[start:i])
encode.go#L1140: e.Write(s[start:i])
encode.go#L1156: e.Write(s[start:i])
encode.go#L1167: e.Write(s[start:])
indent.go#L25: dst.Write(src[start:i])
indent.go#L35: dst.Write(src[start:i])
indent.go#L47: dst.Write(src[start:i])
indent.go#L57: dst.Write(src[start:])
encoding/xml
xml.go#L1092: d.buf.Write([]byte(text))
github.com/aws/aws-sdk-go/aws/client
logger.go#L32: return logger.buf.Write(b)
github.com/aws/aws-sdk-go/private/protocol/json/jsonutil
build.go#L209: buf.Write(strconv.AppendInt(scratch[:0], value.Int(), 10))
build.go#L215: buf.Write(strconv.AppendFloat(scratch[:0], f, 'f', -1, 64))
build.go#L237: buf.Write(dst)
github.com/go-git/go-git/v5/plumbing/format/packfile
diff_delta.go#L86: buf.Write(deltaEncodeSize(len(src)))
diff_delta.go#L87: buf.Write(deltaEncodeSize(len(tgt)))
diff_delta.go#L122: buf.Write(encodeCopyOperation(aOffset, rl))
diff_delta.go#L126: buf.Write(encodeCopyOperation(aOffset, maxCopySize))
diff_delta.go#L154: buf.Write(b[o : o+127])
diff_delta.go#L159: buf.Write(b[o : o+s])
parser.go#L306: _, err := buf.Write(b)
patch_delta.go#L116: dst.Write(src[offset:offset+sz])
patch_delta.go#L128: dst.Write(delta[0:sz])
github.com/go-git/go-git/v5/plumbing/object
commit.go#L234: msgbuf.Write(line)
github.com/google/safehtml/template
escape.go#L612: b.Write(s[written:j])
escape.go#L636: b.Write(s[written:cs])
escape.go#L647: b.Write(n.Text[written:])
github.com/jackc/pgproto3/v2
error_response.go#L119: buf.Write(bigEndian.Uint32(0))
github.com/lib/pq/scram
scram.go#L144: c.authMsg.Write(c.clientNonce)
scram.go#L147: c.out.Write(c.authMsg.Bytes())
scram.go#L155: c.authMsg.Write(in)
scram.go#L189: c.authMsg.Write(c.serverNonce)
scram.go#L192: c.out.Write(c.serverNonce)
scram.go#L194: c.out.Write(c.clientProof())
github.com/russross/blackfriday/v2
block.go#L678: work.Write([]byte(info))
block.go#L701: work.Write(data[beg:end])
block.go#L998: raw.Write(data[beg:end])
block.go#L1043: work.Write(data[beg:i])
block.go#L1255: raw.Write(data[line:i])
block.go#L1310: raw.Write(data[line+indentIndex : i])
block.go#L1390: raw.Write(data[line+indentIndex : i])
inline.go#L689: ob.Write(src[org:i])
markdown.go#L745: raw.Write(data[blockEnd:i])
markdown.go#L782: raw.Write(data[blockEnd+n : i])
markdown.go#L862: out.Write(line[prefix:])
markdown.go#L879: out.Write(line[start:i])
smartypants.go#L312: out.Write(text[:numEnd])
smartypants.go#L314: out.Write(text[denStart:denEnd])
smartypants.go#L379: out.Write(text[:i+1])
github.com/yuin/goldmark/ast
ast.go#L381: buf.Write(c.Text(source))
golang.org/x/crypto/openpgp/packet
userattribute.go#L39: if _, err = buf.Write(data); err != nil {
golang.org/x/crypto/ssh
session.go#L336: return w.b.Write(p)
golang.org/x/net/http2
frame.go#L382: f.debugFramerBuf.Write(f.wbuf)
golang.org/x/net/http2/hpack
hpack.go#L256: d.saveBuf.Write(p)
hpack.go#L273: d.saveBuf.Write(d.buf)
golang.org/x/pkgsite/internal/frontend
goldmark.go#L289: buffer.Write(c.Text(reader.Source()))
goldmark.go#L295: buffer.Write(c.Text(reader.Source()))
golang.org/x/pkgsite/internal/godoc
encode.go#L70: buf.Write(enc.Bytes())
golang.org/x/pkgsite/internal/godoc/dochtml
io.go#L32: n, err = l.B.Write(p)
golang.org/x/tools/txtar
archive.go#L59: buf.Write(fixNL(a.Comment))
archive.go#L62: buf.Write(fixNL(f.Data))
golang.org/x/xerrors
adaptor.go#L156: s.buf.Write(detailSep)
adaptor.go#L160: s.buf.Write(b[k:i])
adaptor.go#L165: s.buf.Write(b[k:])
adaptor.go#L170: s.buf.Write(b)
google.golang.org/api/googleapi
googleapi.go#L192: buf.Write([]byte(`{"data": `))
googleapi.go#L199: buf.Write([]byte(`}`))
google.golang.org/api/internal/third_party/uritemplates
uritemplates.go#L54: w.escaped.Write(reserved.ReplaceAllFunc([]byte(s), pctEncode))
uritemplates.go#L56: w.escaped.Write(unreserved.ReplaceAllFunc([]byte(s), pctEncode))
google.golang.org/grpc/internal/transport
http2_client.go#L997: buffer.Write(f.Data())
http2_server.go#L634: buffer.Write(f.Data())
html/template
escape.go#L665: b.Write(s[written:j])
escape.go#L697: b.Write(s[written:cs])
escape.go#L708: b.Write(n.Text[written:])
html.go#L201: b.Write(s[i:j])
html.go#L221: b.Write(s[i:])
net/http
h2_bundle.go#L1622: f.debugFramerBuf.Write(f.wbuf)
server.go#L3376: return tw.wbuf.Write(p)
net/http/httptest
recorder.go#L110: rw.Body.Write(buf)
os/exec
exec.go#L722: buf.Write(w.prefix)
exec.go#L726: buf.Write(w.suffix[w.suffixOff:])
exec.go#L727: buf.Write(w.suffix[:w.suffixOff])
vendor/golang.org/x/net/http2/hpack
hpack.go#L256: d.saveBuf.Write(p)
hpack.go#L273: d.saveBuf.Write(d.buf)
 |
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. |