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) | |
A non-owning string view. Not necessarily null-terminated.
Instances created here own their C++ objects, see CppObject.
| 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.
| meshlib.std_string_view.std_string_view | ( | ) |
Constructs an empty (default-constructed) instance.
Calls MR_std_string_view_DefaultConstruct().
| 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().
| 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().
| 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().
| 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().
| 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.
| 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.
| long meshlib.std_string_view.size | ( | ) |
The number of characters in the string.
Calls MR_std_string_view_size().