MCPcopy
hub / github.com/EngoEngine/engo / Load

Method Load

assets.go:108–116  ·  view source on GitHub ↗

Load loads the given resource(s) into memory, stopping at the first error.

(urls ...string)

Source from the content-addressed store, hash-verified

106
107// Load loads the given resource(s) into memory, stopping at the first error.
108func (formats *Formats) Load(urls ...string) error {
109 for _, url := range urls {
110 err := formats.load(url)
111 if err != nil {
112 return err
113 }
114 }
115 return nil
116}
117
118// LoadReaderData loads a resource when you already have the reader for it.
119func (formats *Formats) LoadReaderData(url string, f io.Reader) error {

Callers

nothing calls this directly

Calls 1

loadMethod · 0.95

Tested by

no test coverage detected