rawStringln should only be used to read the initial version string.
(b byte)
| 703 | |
| 704 | // rawStringln should only be used to read the initial version string. |
| 705 | func (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 |
| 715 | func (p *gc_bin_parser) ReadByte() (byte, error) { |