MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / readByte

Method readByte

xmlparser/decoder.go:699–709  ·  view source on GitHub ↗

readByte reads a single byte from the reader. If an error occurs, it sets d.err and returns false.

()

Source from the content-addressed store, hash-verified

697// readByte reads a single byte from the reader.
698// If an error occurs, it sets d.err and returns false.
699func (d *Decoder) readByte() (byte, bool) {
700 b, err := d.r.ReadByte()
701 if err != nil {
702 d.err = err
703 return 0, false
704 }
705 if b == '\n' {
706 d.line++
707 }
708 return b, true
709}
710
711// mustReadByte reads a single byte from the reader.
712// If an error occurs, it sets d.err and returns false.

Callers 1

mustReadByteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected