Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
71
func
(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
ReadByte
Method · 0.95
Read
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected