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

Method makeFromBytes

shared/java/Path.java:1159–1164  ·  view source on GitHub ↗

Initializes Path from byte buffer. Returns null if the buffer is data is inconsistent, or the length is too small. Reads PathFillMode, verb array, Point array, conic weight, and additionally reads computed information like path convexity and bounds. Used only in concert wi

(@NotNull byte[] data)

Source from the content-addressed store, hash-verified

1157 * @see <a href="https://fiddle.skia.org/c/@Path_readFromMemory">https://fiddle.skia.org/c/@Path_readFromMemory</a>
1158 */
1159 @Nullable @Contract("_ -> new")
1160 public static Path makeFromBytes(@NotNull byte[] data) {
1161 Stats.onNativeCall();
1162 long ptr = _nMakeFromBytes(data);
1163 return ptr == 0 ? null : new Path(ptr);
1164 }
1165
1166 /**
1167 * <p>Returns a non-zero, globally unique value. A different value is returned

Callers 2

serializeMethod · 0.95
runMethod · 0.45

Calls 2

onNativeCallMethod · 0.95
_nMakeFromBytesMethod · 0.95

Tested by 1

serializeMethod · 0.76