MCPcopy Create free account
hub / github.com/HumbleUI/Skija / makeFromFileName

Method makeFromFileName

shared/java/Data.java:63–69  ·  view source on GitHub ↗

Create a new dataref the file with the specified path. If the file cannot be opened, this returns null.

(@NotNull String path)

Source from the content-addressed store, hash-verified

61 * If the file cannot be opened, this returns null.
62 */
63 @Nullable
64 public static Data makeFromFileName(@NotNull String path) {
65 assert path != null : "Can’t makeFromFileName with path == null";
66 Stats.onNativeCall();
67 long ptr = _nMakeFromFileName(path);
68 return ptr == 0 ? null : new Data(ptr);
69 }
70
71 /**
72 * Create a new dataref using a subset of the data in the specified

Callers 4

executeMethod · 0.95
baseMethod · 0.95
drawMethod · 0.95
CodecSceneMethod · 0.95

Calls 2

onNativeCallMethod · 0.95
_nMakeFromFileNameMethod · 0.95

Tested by 2

executeMethod · 0.76
baseMethod · 0.76