MCPcopy
hub / github.com/cube2222/octosql / WriteString

Method WriteString

parser/sqlparser/dependency/bytes2/buffer.go:47–50  ·  view source on GitHub ↗

WriteString is equivalent to bytes.Buffer.WriteString.

(s string)

Source from the content-addressed store, hash-verified

45
46// WriteString is equivalent to bytes.Buffer.WriteString.
47func (buf *Buffer) WriteString(s string) (int, error) {
48 buf.bytes = append(buf.bytes, s...)
49 return len(s), nil
50}
51
52// WriteByte is equivalent to bytes.Buffer.WriteByte.
53func (buf *Buffer) WriteByte(b byte) error {

Callers 15

scanCommentType1Method · 0.95
scanCommentType2Method · 0.95
TestBufferFunction · 0.95
FormatMethod · 0.80
FormatMethod · 0.80
FormatMethod · 0.80
FormatMethod · 0.80
FormatMethod · 0.80
FormatMethod · 0.80
FormatMethod · 0.80
FormatMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestBufferFunction · 0.76