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)
| 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 |