isSpace checks if a byte is a whitespace character.
(b byte)
| 679 | |
| 680 | // isSpace checks if a byte is a whitespace character. |
| 681 | func isSpace(b byte) bool { |
| 682 | return b == ' ' || b == '\r' || b == '\n' || b == '\t' |
| 683 | } |
| 684 | |
| 685 | func (d *Decoder) checkAndDiscardPrefix(prefix []byte) bool { |
| 686 | prefixLen := len(prefix) |
no outgoing calls
no test coverage detected