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

Method StartCaching

cached_reader.go:21–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19}
20
21func (c *cachedReader) StartCaching() {
22 c.cache = c.cache[:0]
23 c.caching = true
24}
25
26func (c *cachedReader) ReadByte() (b byte, err error) {
27 b, err = c.buffer.ReadByte()

Callers 2

parseMethod · 0.80
TestCachingFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestCachingFunction · 0.64