Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/imgproxy/imgproxy
/ NewDecoder
Function
NewDecoder
xmlparser/decoder.go:45–52 ·
view source on GitHub ↗
(r io.Reader)
Source
from the content-addressed store, hash-verified
43
}
44
45
func
NewDecoder(r io.Reader) *Decoder {
46
dec := Decoder{buf: newBuffer(), line: 1}
47
48
dec.setReader(r)
49
dec.checkBOM()
50
51
return
&dec
52
}
53
54
func
(d *Decoder) Close() error {
55
d.r.Reset(nil)
Callers
2
IsSVG
Function · 0.92
readFrom
Method · 0.85
Calls
3
setReader
Method · 0.95
checkBOM
Method · 0.95
newBuffer
Function · 0.70
Tested by
no test coverage detected