MCPcopy Create free account
hub / github.com/pion/ice / readCandidateStringToken

Function readCandidateStringToken

candidate_base.go:969–977  ·  view source on GitHub ↗

Read an ice string token from the raw string until a space is encountered Or the end of the string, we imply that ice string are UTF-8 encoded.

(raw string, start int)

Source from the content-addressed store, hash-verified

967// Read an ice string token from the raw string until a space is encountered
968// Or the end of the string, we imply that ice string are UTF-8 encoded.
969func readCandidateStringToken(raw string, start int) (string, int) {
970 for i, char := range raw[start:] {
971 if char == 0x20 { // SP
972 return raw[start : start+i], start + i + 1
973 }
974 }
975
976 return raw[start:], len(raw)
977}
978
979// Read a digit token from the raw string
980// stop reading when a space is encountered or the end of the string.

Callers 2

UnmarshalCandidateFunction · 0.85
tryReadRelativeAddrsFunction · 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…