MCPcopy Create free account
hub / github.com/valyala/bytebufferpool / WriteByte

Method WriteByte

bytebuffer.go:82–85  ·  view source on GitHub ↗

WriteByte appends the byte c to the buffer. The purpose of this function is bytes.Buffer compatibility. The function always returns nil.

(c byte)

Source from the content-addressed store, hash-verified

80//
81// The function always returns nil.
82func (b *ByteBuffer) WriteByte(c byte) error {
83 b.B = append(b.B, c)
84 return nil
85}
86
87// WriteString appends s to ByteBuffer.B.
88func (b *ByteBuffer) WriteString(s string) (int, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected