MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / WriteByte

Method WriteByte

xmlparser/buffer.go:48–52  ·  view source on GitHub ↗

WriteByte writes a single byte to the buffer.

(p byte)

Source from the content-addressed store, hash-verified

46
47// WriteByte writes a single byte to the buffer.
48func (b *buffer) WriteByte(p byte) error {
49 b.grow(1)
50 *b = append(*b, p)
51 return nil
52}
53
54// HasSuffix reports whether the buffer ends with the given suffix.
55func (b *buffer) HasSuffix(suffix []byte) bool {

Callers 7

readDoctypeMethod · 0.80
WriteToMethod · 0.80
writeAttrsToMethod · 0.80
WriteToMethod · 0.80
WriteToMethod · 0.80
WriteToMethod · 0.80
DumpMethod · 0.80

Calls 1

growMethod · 0.95

Tested by

no test coverage detected