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

Method ReadByte

cached_reader.go:26–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24}
25
26func (c *cachedReader) ReadByte() (b byte, err error) {
27 b, err = c.buffer.ReadByte()
28 if err != nil {
29 return
30 }
31 if c.caching {
32 c.cacheByte(b)
33 }
34 return
35}
36
37func (c *cachedReader) Cache() []byte {
38 return c.cache

Callers 1

TestCachingFunction · 0.80

Calls 1

cacheByteMethod · 0.95

Tested by 1

TestCachingFunction · 0.64