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

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

+ Inheritance diagram for MR.Std.Const_String:

Classes

struct  _Underlying
 

Public Member Functions

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 Const_String (string other)
 Constructs a new instance.
 
static unsafe implicit operator string (MR.Std.Const_String self)
 

Protected Member Functions

virtual unsafe void Dispose (bool disposing)
 

Additional Inherited Members

- 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 const half of the class.


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