MCPcopy 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
45func 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
54func (d *Decoder) Close() error {
55 d.r.Reset(nil)

Callers 2

IsSVGFunction · 0.92
readFromMethod · 0.85

Calls 3

setReaderMethod · 0.95
checkBOMMethod · 0.95
newBufferFunction · 0.70

Tested by

no test coverage detected