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

Method getByteBufferFromPointer

shared/java/impl/BufferUtil.java:8–13  ·  view source on GitHub ↗
(long ptr, int size)

Source from the content-addressed store, hash-verified

6 static { Library.staticLoad(); }
7
8 public static ByteBuffer getByteBufferFromPointer(long ptr, int size) {
9 ByteBuffer result = _nGetByteBufferFromPointer(ptr, size);
10 if (result == null)
11 throw new IllegalArgumentException("JNI direct buffer access not support by current JVM!");
12 return result;
13 }
14
15 public static long getPointerFromByteBuffer(ByteBuffer buffer) {
16 long result = _nGetPointerFromByteBuffer(buffer);

Callers 1

getBufferMethod · 0.95

Calls 1

Tested by

no test coverage detected