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

Method makeDeferredFromEncodedBytes

shared/java/Image.java:240–247  ·  view source on GitHub ↗
(byte[] bytes)

Source from the content-addressed store, hash-verified

238 }
239
240 @NotNull @Contract("_ -> new")
241 public static Image makeDeferredFromEncodedBytes(byte[] bytes) {
242 Stats.onNativeCall();
243 long ptr = _nMakeDeferredFromEncodedBytes(bytes);
244 if (ptr == 0)
245 throw new IllegalArgumentException("Failed to Image::makeFromEncoded");
246 return new Image(ptr);
247 }
248
249 /**
250 * Returns a ImageInfo describing the width, height, color type, alpha type, and color space

Callers 10

makeFromEncodedMethod · 0.95
RuntimeEffectSceneMethod · 0.95
FigmaSceneMethod · 0.95
ColorFiltersSceneMethod · 0.95
ShadowsSceneMethod · 0.95
ImageBenchSceneMethod · 0.95
BitmapImageSceneMethod · 0.95
ImageFiltersSceneMethod · 0.95
loadImageMethod · 0.95
ImagesSceneMethod · 0.95

Calls 2

onNativeCallMethod · 0.95

Tested by

no test coverage detected