We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 519adf3 commit eb9c2c2Copy full SHA for eb9c2c2
src/runtime/bytes.go
@@ -0,0 +1,11 @@
1
+package runtime
2
+
3
+//go:linkname indexBytePortable internal/bytealg.IndexByte
4
+func indexBytePortable(s []byte, c byte) int {
5
+ for i, b := range s {
6
+ if b == c {
7
+ return i
8
+ }
9
10
+ return -1
11
+}
0 commit comments