Public Member Functions | |
| std_string (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner) | |
| std_string () | |
| std_string (meshlib.std_string other) | |
| std_string (java.lang.String other) | |
| void | assignFromAnother (meshlib.std_string other) |
| void | assignFrom (java.lang.String other) |
| long | size () |
| java.lang.foreign.MemorySegment | data () |
| java.lang.foreign.MemorySegment | data_mut () |
| java.lang.foreign.MemorySegment | data_end () |
| java.lang.foreign.MemorySegment | data_end_mut () |
| java.lang.String | toString () |
| 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 heap-allocated null-terminated string.
Instances created here own their C++ objects, see CppObject.
| meshlib.std_string.std_string | ( | 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.std_string | ( | ) |
Constructs an empty (default-constructed) instance.
Calls MR_std_string_DefaultConstruct().
| meshlib.std_string.std_string | ( | meshlib.std_string | 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_ConstructFromAnother().
| meshlib.std_string.std_string | ( | java.lang.String | other | ) |
Constructs a new instance.
Calls MR_std_string_ConstructFrom().
| void meshlib.std_string.assignFrom | ( | java.lang.String | other | ) |
Assigns the contents.
Calls MR_std_string_AssignFrom().
| void meshlib.std_string.assignFromAnother | ( | meshlib.std_string | 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_AssignFromAnother().
| java.lang.foreign.MemorySegment meshlib.std_string.data | ( | ) |
Returns the string contents, which are always null-terminated. The reference to this object might be preserved as the return value.
Calls MR_std_string_data(). Some types are raw C types, see the C bindings for the details.
| java.lang.foreign.MemorySegment meshlib.std_string.data_end | ( | ) |
Returns a pointer to the end of string, to its null-terminator. The reference to this object might be preserved as the return value.
Calls MR_std_string_data_end(). Some types are raw C types, see the C bindings for the details.
| java.lang.foreign.MemorySegment meshlib.std_string.data_end_mut | ( | ) |
Returns a pointer to the end of string, to its null-terminator. This version returns a non-const pointer. The reference to this object might be preserved as the return value.
Calls MR_std_string_data_end_mut(). Some types are raw C types, see the C bindings for the details.
| java.lang.foreign.MemorySegment meshlib.std_string.data_mut | ( | ) |
Returns the string contents, which are always null-terminated. This version returns a non-const pointer. The reference to this object might be preserved as the return value.
Calls MR_std_string_data_mut(). Some types are raw C types, see the C bindings for the details.
| long meshlib.std_string.size | ( | ) |
The number of characters in the string, excluding the null-terminator.
Calls MR_std_string_size().
| java.lang.String meshlib.std_string.toString | ( | ) |
The contents, decoded as UTF-8.