MCPcopy
hub / github.com/pquerna/ffjson / scanString

Function scanString

fflib/v1/reader_scan_generic.go:20–34  ·  view source on GitHub ↗
(s []byte, j int)

Source from the content-addressed store, hash-verified

18package v1
19
20func scanString(s []byte, j int) (int, byte) {
21 for {
22 if j >= len(s) {
23 return j, 0
24 }
25
26 c := s[j]
27 j++
28 if byteLookupTable[c]&sliceStringMask == 0 {
29 continue
30 }
31
32 return j, c
33 }
34}

Callers 1

SliceStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…