Public Member Functions | |
| final java.lang.foreign.MemorySegment | rawPointer () |
Protected Member Functions | |
| CppStruct (java.lang.foreign.MemorySegment segment, java.lang.Object owner) | |
Protected Attributes | |
| final java.lang.foreign.MemorySegment | segment |
The base class of the wrappers of the C++ structs exposed with --expose-as-struct.
An instance is a view over a memory segment holding the struct. Instances created in Java own their memory (freed by the garbage collector), those returned by reference from the bindings point into memory owned by something else, which they keep alive.
|
protected |
Wraps a segment of the exact struct size. owner is kept alive as long as this wrapper is.
| final java.lang.foreign.MemorySegment meshlib.CppStruct.rawPointer | ( | ) |
The address of the native object. For opaque classes it's a zero-length segment, for exposed structs it covers the struct.
Implements meshlib.Native.
|
protected |