alef 0.25.37

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
    private static String readCString(MemorySegment ptr, long byteLen) {
        if (ptr == null || ptr.address() == 0) {
            return null;
        }
        return ptr.reinterpret(byteLen + 1).getString(0);
    }