MCPcopy Create free account
hub / github.com/aardappel/treesheets / LoadFileFromAny

Function LoadFileFromAny

lobster/src/platform.cpp:282–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282int64_t LoadFileFromAny(string_view srelfilename, string *dest, int64_t start, int64_t len) {
283 for (auto &dir : data_dirs) {
284 auto l = cur_loader(dir + srelfilename, dest, start, len);
285 if (l >= 0) return l;
286 }
287 return -1;
288}
289
290// We don't generally load in ways that allow stdio text mode conversions, so this function
291// emulates them at best effort.

Callers 1

LoadFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected