MCPcopy
hub / github.com/g3n/engine / isDataURL

Function isDataURL

loader/gltf/loader.go:1145–1151  ·  view source on GitHub ↗

isDataURL checks if the specified string has the prefix of data URL.

(url string)

Source from the content-addressed store, hash-verified

1143
1144// isDataURL checks if the specified string has the prefix of data URL.
1145func isDataURL(url string) bool {
1146
1147 if strings.HasPrefix(url, dataURLprefix) {
1148 return true
1149 }
1150 return false
1151}
1152
1153// loadDataURL decodes the specified data URI string (base64).
1154func loadDataURL(url string) ([]byte, error) {

Callers 3

LoadImageMethod · 0.85
loadBufferMethod · 0.85
parseDataURLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected