Lines Matching refs:b
31 func writeByte(w io.Writer, b byte) error {
33 return bw.WriteByte(b)
35 _, err := w.Write([]byte{b})
71 func (b *buffer) Write(data []byte) (int, error) {
72 b.buf = append(b.buf, data...)
76 func (b *buffer) WriteByte(c byte) error {
77 b.buf = append(b.buf, c)
81 func (b *buffer) WriteString(s string) (int, error) {
82 b.buf = append(b.buf, []byte(s)...)
86 func (b *buffer) Bytes() []byte { return b.buf }
87 func (b *buffer) Len() int { return len(b.buf) }
88 func (b *buffer) String() string { return string(b.buf) }
90 func (b *buffer) Reset() {
91 if b.buf == nil {
92 b.buf = b.bootstrap[:0]
94 b.buf = b.buf[:0]
118 func (b *evalBuffer) Reset() {
119 b.buffer.Reset()
120 b.resetSep()
123 func (b *evalBuffer) resetSep() {
124 if b.ssvWriter.Writer == nil {
125 b.ssvWriter.Writer = &b.buffer
127 b.ssvWriter.resetSep()