JUnion 1.2.2 EA (Early-Access)
Pre-release
Pre-release
Content:
- junion1.2.2.jar is the runtime library
- junionc1.2.2.jar + libs are used for compiling only
Changes:
- can allocate struct arrays on heap, off-heap, stack, the syntax uses annotation, eg:
Vec3[] arr = new Vec3[10]; //default currently allocates on heap
Vec3[] arr = new @Heap Vec3[10];
Vec3[] arr2 = new @Direct Vec3[10];
Vec3[] arr4 = new @DirectBuffer Vec3[10];
Vec3[] arr5 = new @Stack Vec3[10];
Vec3[] arr7 = new @Heap(ArrayType.Byte) Vec3[10]; //underlying data is Java byte[] array
- the underlying storage can be retrieved as Java array/Buffer with
Mem.getJavaArray(arr)
andMem.getJavaBuffer(arr)
- added StructType class, which can be used to find information about a struct
- added StructList, which serves as a resizable struct array, it stores its elements as data not as references (not yet finished)
- Array allocation is done through ArrayAllocator interface and can be customized by the user if needed
- Bridge interface serves as the link between the application and ram. The default bridge interface DefaultBridge uses Unsafe to read and write memory.
- added MemInit class which stores related settings, such as setting the bridge interface, allocator interface to use, etc.
sha512sum
a9ba4a69e72e84ae995c3d60f86250526a17e9f600180bdca6b8c3f26c1a27800488f315b09f38b138e4b72e5da9b654f963f0585c788b75a801db0918067e6a