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

Method Write

xmlparser/buffer.go:37–45  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

35}
36
37func (b *buffer) Write(p []byte) (n int, err error) {
38 if len(p) == 0 {
39 return 0, nil
40 }
41
42 b.grow(len(p))
43 *b = append(*b, p...)
44 return len(p), nil
45}
46
47// WriteByte writes a single byte to the buffer.
48func (b *buffer) WriteByte(p byte) error {

Callers 7

readUntilMethod · 0.45
mustReadWhileFnMethod · 0.45
WriteToMethod · 0.45
WriteToMethod · 0.45
WriteToMethod · 0.45
WriteToMethod · 0.45

Calls 1

growMethod · 0.95

Tested by

no test coverage detected