MeshLib Java Docs
Loading...
Searching...
No Matches
Inheritance diagram for meshlib.CppStruct:

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ CppStruct()

meshlib.CppStruct.CppStruct ( java.lang.foreign.MemorySegment segment,
java.lang.Object owner )
protected

Wraps a segment of the exact struct size. owner is kept alive as long as this wrapper is.

Member Function Documentation

◆ rawPointer()

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.

Member Data Documentation

◆ segment

final java.lang.foreign.MemorySegment meshlib.CppStruct.segment
protected

The documentation for this class was generated from the following file: