- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for ScanLines (0.07 sec)
-
src/bufio/scan.go
startBufSize = 4096 // Size of initial allocation for buffer. ) // NewScanner returns a new [Scanner] to read from r. // The split function defaults to [ScanLines]. func NewScanner(r io.Reader) *Scanner { return &Scanner{ r: r, split: ScanLines, maxTokenSize: MaxScanTokenSize, } } // Err returns the first non-EOF error that was encountered by the [Scanner]. func (s *Scanner) Err() error {
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed May 21 18:05:26 UTC 2025 - 14.2K bytes - Viewed (0) -
src/bufio/scan_test.go
genLine(tmp, lineNum, j, true) if j < smallMaxTokenSize { j++ } else { j-- } buf.Write(tmp.Bytes()) lineNum++ } s := NewScanner(&slowReader{1, buf}) s.Split(ScanLines) s.MaxTokenSize(smallMaxTokenSize) j = 0 for lineNum := 0; s.Scan(); lineNum++ { genLine(tmp, lineNum, j, false) if j < smallMaxTokenSize { j++ } else { j-- }
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Sep 22 16:22:42 UTC 2023 - 14.3K bytes - Viewed (0) -
docs/debugging/pprofgoparser/main.go
save := func(s string) { bf.WriteString(s + "\n") } reset := func() { bf.Reset() } ret := make(map[time.Duration][]string) s := bufio.NewScanner(f) s.Split(bufio.ScanLines) var ( t time.Duration skip, record bool ) for s.Scan() { line := s.Text() switch { case skip && line != "": case skip && line == "": skip = false
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Mar 06 11:43:16 UTC 2024 - 3.4K bytes - Viewed (0) -
api/go1.1.txt
pkg bufio, const MaxScanTokenSize = 65536 pkg bufio, const MaxScanTokenSize ideal-int pkg bufio, func NewScanner(io.Reader) *Scanner pkg bufio, func ScanBytes([]uint8, bool) (int, []uint8, error) pkg bufio, func ScanLines([]uint8, bool) (int, []uint8, error) pkg bufio, func ScanRunes([]uint8, bool) (int, []uint8, error) pkg bufio, func ScanWords([]uint8, bool) (int, []uint8, error) pkg bufio, method (*Reader) WriteTo(io.Writer) (int64, error)
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Thu Mar 31 20:37:15 UTC 2022 - 2.6M bytes - Viewed (0)