Bytes returns b.B, i.e. all the bytes accumulated in the buffer. The purpose of this function is bytes.Buffer compatibility.
()
| 65 | // |
| 66 | // The purpose of this function is bytes.Buffer compatibility. |
| 67 | func (b *ByteBuffer) Bytes() []byte { |
| 68 | return b.B |
| 69 | } |
| 70 | |
| 71 | // Write implements io.Writer - it appends p to ByteBuffer.B |
| 72 | func (b *ByteBuffer) Write(p []byte) (int, error) { |
no outgoing calls