github.com/go-faster/jx.Writer.Buf (field)

50 uses

	github.com/go-faster/jx (current package)
		enc.go#L68: func (e Encoder) Bytes() []byte { return e.w.Buf }
		enc.go#L71: func (e *Encoder) SetBytes(buf []byte) { e.w.Buf = buf }
		enc_stream.go#L20: 			Buf:    make([]byte, 0, bufSize),
		w.go#L12: 	Buf    []byte // underlying buffer
		w.go#L19: 		if len(w.Buf) > 0 {
		w.go#L26: 	w.Buf = append(w.Buf, p...)
		w.go#L35: 	wrote, err := t.Write(w.Buf)
		w.go#L42: 	return string(w.Buf)
		w.go#L49: 	w.Buf = w.Buf[:0]
		w.go#L55: 	w.Buf = w.Buf[:0]
		w.go#L66: 	buf := bytes.NewBuffer(w.Buf)
		w.go#L68: 	w.Buf = buf.Bytes()
		w.go#L74: 		w.Buf, fail = w.stream.flush(w.Buf)
		w.go#L85: 		w.Buf = append(w.Buf, c)
		w.go#L93: 		w.Buf = append(w.Buf, c1, c2)
		w_b64.go#L23: 	case w.stream == nil || len(w.Buf)+encodedLen <= cap(w.Buf):
		w_b64.go#L24: 		start := len(w.Buf)
		w_b64.go#L25: 		w.Buf = append(w.Buf, make([]byte, encodedLen)...)
		w_b64.go#L26: 		base64.StdEncoding.Encode(w.Buf[start:], data)
		w_b64.go#L31: 		w.Buf, fail = s.flush(w.Buf)
		w_float_bits.go#L25: 		w.Buf = floatAppend(w.Buf, v, bits)
		w_stream.go#L16: 	_, fail := w.stream.flush(w.Buf)
		w_stream.go#L80: 		w.Buf = append(w.Buf, s...)
		w_stream.go#L91: 	for len(w.Buf)+len(s) > cap(w.Buf) {
		w_stream.go#L93: 		w.Buf, fail = w.stream.flush(w.Buf)
		w_stream.go#L97: 		n := copy(w.Buf[len(w.Buf):cap(w.Buf)], s)
		w_stream.go#L99: 		w.Buf = w.Buf[:len(w.Buf)+n]
		w_stream.go#L101: 	w.Buf = append(w.Buf, s...)

	github.com/gotd/td/tdjson
		encoder.go#L106: 	if l := len(b.Buf); l > 0 && b.Buf[l-1] == ',' {
		encoder.go#L107: 		b.Buf = b.Buf[:l-1]