MeshLib C# Docs
Loading...
Searching...
No Matches
MR.Std.String Class Reference

A heap-allocated null-terminated string. This is the non-const half of the class. More...

+ Inheritance diagram for MR.Std.String:

Public Member Functions

unsafe String ()
 Constructs an empty (default-constructed) instance.
 
unsafe String (MR.Std._ByValue_String other)
 Constructs a copy of another instance. The source remains alive.
 
unsafe String (string other)
 Constructs a new instance.
 
unsafe void assign (MR.Std._ByValue_String other)
 Assigns the contents from another instance. Both objects remain alive after the call.
 
unsafe void assign (string other)
 Assigns the contents.
 
unsafe new byte * data ()
 Returns the string contents, which are always null-terminated. This version returns a non-const pointer. Returns a read-only pointer.
 
unsafe new byte * dataEnd ()
 Returns a pointer to the end of string, to its null-terminator. This version returns a non-const pointer. Returns a mutable pointer.
 
- Public Member Functions inherited from MR.Std.Const_String
virtual void Dispose ()
 
unsafe Const_String ()
 Constructs an empty (default-constructed) instance.
 
unsafe Const_String (MR.Std._ByValue_String other)
 Constructs a copy of another instance. The source remains alive.
 
unsafe Const_String (string other)
 Constructs a new instance.
 
unsafe ulong size ()
 The number of characters in the string, excluding the null-terminator.
 
unsafe byte * data ()
 Returns the string contents, which are always null-terminated. Returns a read-only pointer.
 
unsafe byte * dataEnd ()
 Returns a pointer to the end of string, to its null-terminator. Returns a read-only pointer.
 
override string ToString ()
 

Static Public Member Functions

static unsafe implicit operator String (string other)
 Constructs a new instance.
 
- Static Public Member Functions inherited from MR.Std.Const_String
static unsafe implicit operator Const_String (string other)
 Constructs a new instance.
 
static unsafe implicit operator string (MR.Std.Const_String self)
 

Additional Inherited Members

- Protected Member Functions inherited from MR.Std.Const_String
virtual unsafe void Dispose (bool disposing)
 
- Protected Attributes inherited from MR.Misc.Object< Const_String >
bool _IsOwningVal
 
- Properties inherited from MR.Misc.Object< Const_String >
virtual bool _IsOwning [get]
 Returns true if this is an owning instance, and when disposed, will destroy the underlying C++ instance. If false, we assume that the underlying C++ instance will live long enough.
 

Detailed Description

A heap-allocated null-terminated string. This is the non-const half of the class.


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