- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for SplitAfterSeq (0.05 sec)
-
src/bytes/iter_test.go
for range b.N { for range SplitAfterSeq(benchInputHard, nil) { } } } func BenchmarkSplitAfterSeqSingleByteSeparator(b *testing.B) { sep := []byte("/") for range b.N { for range SplitAfterSeq(benchInputHard, sep) { } } } func BenchmarkSplitAfterSeqMultiByteSeparator(b *testing.B) { sep := []byte("hello") for range b.N { for range SplitAfterSeq(benchInputHard, sep) { } }
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue May 06 02:08:23 UTC 2025 - 1.1K bytes - Viewed (0) -
src/bytes/iter.go
return splitSeq(s, sep, 0) } // SplitAfterSeq returns an iterator over subslices of s split after each instance of sep. // The iterator yields the same subslices that would be returned by [SplitAfter](s, sep), // but without constructing a new slice containing the subslices. // It returns a single-use iterator. func SplitAfterSeq(s, sep []byte) iter.Seq[[]byte] { return splitSeq(s, sep, len(sep)) }
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Sep 03 14:04:47 UTC 2025 - 3.6K bytes - Viewed (0)