Daily Archives: 02/09/2019

KStructs: direct access to C-like memory structs with Kotlin for the JVM

While KPointers is a library that provides for very low level access to memory in Kotlin for the JVM, a higher level of abstraction is required to access structured data, so that we do not need to remember offsets and field sizes every time we need to read/write to them.

KStructs is a Kotlin library whose intent is to solve this issue, so that access to off-heap C-struct-like memory is much simpler. KStructs is built on top KPointers.

Go to the KStructs site for a very simple introduction to KStructs, and download it from there.