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

A non-owning string view. Not necessarily null-terminated. This is the non-const half of the class. More...

+ Inheritance diagram for MR.Std.StringView:

Public Member Functions

unsafe StringView ()
 Constructs an empty (default-constructed) instance.
 
unsafe StringView (MR.Std.Const_StringView other)
 Constructs a copy of another instance. The source remains alive.
 
unsafe StringView (string other)
 Constructs a new instance.
 
unsafe void assign (MR.Std.Const_StringView other)
 Assigns the contents from another instance. Both objects remain alive after the call.
 
unsafe void assign (string other)
 Assigns the contents.
 
- Public Member Functions inherited from MR.Std.Const_StringView
virtual void Dispose ()
 
unsafe Const_StringView ()
 Constructs an empty (default-constructed) instance.
 
unsafe Const_StringView (MR.Std.Const_StringView other)
 Constructs a copy of another instance. The source remains alive.
 
unsafe Const_StringView (string other)
 Constructs a new instance.
 
unsafe ulong size ()
 The number of characters in the string.
 
unsafe byte * data ()
 Returns the string contents, NOT necessarily null-terminated. Returns a read-only pointer.
 
unsafe byte * dataEnd ()
 Returns a pointer to the end of string. Not dereferencable. Returns a read-only pointer.
 
override string ToString ()
 

Static Public Member Functions

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

Additional Inherited Members

- Protected Member Functions inherited from MR.Std.Const_StringView
virtual unsafe void Dispose (bool disposing)
 
- Protected Attributes inherited from MR.Misc.Object< Const_StringView >
bool _IsOwningVal
 
- Properties inherited from MR.Misc.Object< Const_StringView >
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 non-owning string view. Not necessarily null-terminated. This is the non-const half of the class.


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