2.1.0
Changes since 1.2.7:
- 💥 Moved package from
net.blueberrymc.native_util
tonet.blueberrymc.nativeutil
(migration: just remove the underscore) - ➕ Added NativeType annotation to add more information about parameters
- ➕ Added
callType
andcallNonvirtualType
methods which takesMethodIDInfo *
as first parameter - ➕ Added
getMethodId(Method)
which returnsMethodIDInfo *
for methods above (make sure to read javadocs before using this method, this method has side effects) - ➕ Added
getMethodFromId(long, boolean)
which takesMethodIDInfo *
andis_static
as arguments and returns thejava.lang.reflect.Method
- ➕ Added
free(long)
to free the memory block - ➕ Added
memset(long, int, int)
- ➕ Added BoxedValue class to pass the boxed argument to the method which has boxed primitive type as a parameter (See https://github.com/BlueberryMC/NativeUtil/blob/c194dd4f61f7f147fc5f49944db00f537b68d867/src/test/java/net/blueberrymc/nativeutil/NativeUtilTest.java#L40-L43 for example)
- ➖ Removed Benchmark class from test source