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

Method serializeToBytes

shared/java/Path.java:1134–1142  ·  view source on GitHub ↗

Writes Path to byte buffer. Writes PathFillMode, verb array, Point array, conic weight, and additionally writes computed information like path convexity and bounds. Use only be used in concert with makeFromBytes(byte[]); the format used for Path in memory is not gu

()

Source from the content-addressed store, hash-verified

1132 * @see <a href="https://fiddle.skia.org/c/@Path_writeToMemory">https://fiddle.skia.org/c/@Path_writeToMemory</a>
1133 */
1134 @NotNull @Contract(pure = true)
1135 public byte[] serializeToBytes() {
1136 try {
1137 Stats.onNativeCall();
1138 return _nSerializeToBytes(_ptr);
1139 } finally {
1140 ReferenceUtil.reachabilityFence(this);
1141 }
1142 }
1143
1144 /**
1145 * <p>Initializes Path from byte buffer. Returns null if the buffer is

Callers 1

serializeMethod · 0.80

Calls 3

onNativeCallMethod · 0.95
_nSerializeToBytesMethod · 0.95
reachabilityFenceMethod · 0.95

Tested by 1

serializeMethod · 0.64