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

Public Member Functions

final java.lang.foreign.MemorySegment rawPointer ()
final long length ()

Static Public Member Functions

static java.lang.foreign.MemorySegment ref (ScalarOutput object, java.lang.String name)

Protected Member Functions

 ScalarOutput (long size, java.lang.foreign.MemoryLayout layout)
final long index (long i)
final void checkSingle ()

Protected Attributes

final java.lang.foreign.MemorySegment segment

Detailed Description

The base class of int_output, float_output, ... (named after the C type, like in the Python bindings), which the wrappers take for the mutable scalar parameters: int & needs exactly one element, int * accepts null, one element, or an array. An instance owns length() scalars in native memory (freed by the garbage collector), which the C++ functions read and write.

Constructor & Destructor Documentation

◆ ScalarOutput()

meshlib.ScalarOutput.ScalarOutput ( long size,
java.lang.foreign.MemoryLayout layout )
protected

Member Function Documentation

◆ checkSingle()

final void meshlib.ScalarOutput.checkSingle ( )
protected

◆ index()

final long meshlib.ScalarOutput.index ( long i)
protected

◆ length()

final long meshlib.ScalarOutput.length ( )

The number of elements.

◆ rawPointer()

final java.lang.foreign.MemorySegment meshlib.ScalarOutput.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.

◆ ref()

java.lang.foreign.MemorySegment meshlib.ScalarOutput.ref ( ScalarOutput object,
java.lang.String name )
static

The pointer for a reference parameter: checks that there is exactly one element.

Member Data Documentation

◆ segment

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

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