MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.std_string_view Class Reference
Inheritance diagram for meshlib.std_string_view:

Public Member Functions

 std_string_view (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 std_string_view ()
 std_string_view (meshlib.std_string_view other)
 std_string_view (java.lang.String other)
void assignFromAnother (meshlib.std_string_view other)
void assignFrom (java.lang.String other)
long size ()
java.lang.foreign.MemorySegment data ()
java.lang.foreign.MemorySegment data_end ()
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

Detailed Description

A non-owning string view. Not necessarily null-terminated.

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ std_string_view() [1/4]

meshlib.std_string_view.std_string_view ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ std_string_view() [2/4]

meshlib.std_string_view.std_string_view ( )

Constructs an empty (default-constructed) instance.

Calls MR_std_string_view_DefaultConstruct().

◆ std_string_view() [3/4]

meshlib.std_string_view.std_string_view ( meshlib.std_string_view other)

Constructs a copy of another instance. The source remains alive. The reference to the parameter other might be preserved in the constructed object.

Calls MR_std_string_view_ConstructFromAnother().

◆ std_string_view() [4/4]

meshlib.std_string_view.std_string_view ( java.lang.String other)

Constructs a new instance. The reference to the parameter other might be preserved in the constructed object.

Calls MR_std_string_view_ConstructFrom().

Member Function Documentation

◆ assignFrom()

void meshlib.std_string_view.assignFrom ( java.lang.String other)

Assigns the contents. The reference to the parameter other might be preserved in this object.

Calls MR_std_string_view_AssignFrom().

◆ assignFromAnother()

void meshlib.std_string_view.assignFromAnother ( meshlib.std_string_view other)

Assigns the contents from another instance. Both objects remain alive after the call. The reference to the parameter other might be preserved in this object.

Calls MR_std_string_view_AssignFromAnother().

◆ data()

java.lang.foreign.MemorySegment meshlib.std_string_view.data ( )

Returns the string contents, NOT necessarily null-terminated. The reference to this object might be preserved as the return value.

Calls MR_std_string_view_data(). Some types are raw C types, see the C bindings for the details.

◆ data_end()

java.lang.foreign.MemorySegment meshlib.std_string_view.data_end ( )

Returns a pointer to the end of string. Not dereferencable. The reference to this object might be preserved as the return value.

Calls MR_std_string_view_data_end(). Some types are raw C types, see the C bindings for the details.

◆ size()

long meshlib.std_string_view.size ( )

The number of characters in the string.

Calls MR_std_string_view_size().


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