MCPcopy Create free account
hub / github.com/antchfx/xmlquery / cacheByte

Method cacheByte

cached_reader.go:71–79  ·  view source on GitHub ↗
(b byte)

Source from the content-addressed store, hash-verified

69}
70
71func (c *cachedReader) cacheByte(b byte) bool {
72 n := len(c.cache)
73 if n == cap(c.cache) {
74 return false
75 }
76 c.cache = c.cache[:n+1]
77 c.cache[n] = b
78 return true
79}

Callers 2

ReadByteMethod · 0.95
ReadMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected