MCPcopy Create free account
hub / github.com/nsf/gocode / rawStringln

Method rawStringln

package_bin.go:705–712  ·  view source on GitHub ↗

rawStringln should only be used to read the initial version string.

(b byte)

Source from the content-addressed store, hash-verified

703
704// rawStringln should only be used to read the initial version string.
705func (p *gc_bin_parser) rawStringln(b byte) string {
706 p.buf = p.buf[:0]
707 for b != '\n' {
708 p.buf = append(p.buf, b)
709 b = p.rawByte()
710 }
711 return string(p.buf)
712}
713
714// needed for binary.ReadVarint in rawInt64
715func (p *gc_bin_parser) ReadByte() (byte, error) {

Callers 1

parse_exportMethod · 0.95

Calls 1

rawByteMethod · 0.95

Tested by

no test coverage detected