MCPcopy Create free account
hub / github.com/pquerna/ffjson / ReadByte

Method ReadByte

fflib/v1/reader.go:114–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112}
113
114func (r *ffReader) ReadByte() (byte, error) {
115 if r.i >= r.l {
116 return 0, io.EOF
117 }
118
119 r.i++
120
121 return r.s[r.i-1], nil
122}
123
124func (r *ffReader) UnreadByte() error {
125 if r.i <= 0 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected