MCPcopy Index your code
hub / github.com/yuin/gopher-lua / readBufioLine

Function readBufioLine

utils.go:202–220  ·  view source on GitHub ↗
(reader *bufio.Reader)

Source from the content-addressed store, hash-verified

200}
201
202func readBufioLine(reader *bufio.Reader) ([]byte, error, bool) {
203 result := []byte{}
204 var buf []byte
205 var err error
206 var isprefix bool = true
207 for isprefix {
208 buf, isprefix, err = reader.ReadLine()
209 if err != nil {
210 break
211 }
212 result = append(result, buf...)
213 }
214 e := err
215 if e != nil && e == io.EOF {
216 e = nil
217 }
218
219 return result, e, len(result) == 0 && err == io.EOF
220}
221
222func int2Fb(val int) int {
223 e := 0

Callers 2

LoadFileMethod · 0.85
fileReadAuxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…