Table of Contents

Class CharPtr

Namespace
MoonSharp.Interpreter.Interop.LuaStateInterop
Assembly
Assembly-CSharp.dll
public class CharPtr
Inheritance
CharPtr
Inherited Members
Extension Methods

Constructors

CharPtr()

public CharPtr()

CharPtr(CharPtr)

public CharPtr(CharPtr ptr)

Parameters

ptr CharPtr

CharPtr(CharPtr, int)

public CharPtr(CharPtr ptr, int index)

Parameters

ptr CharPtr
index int

CharPtr(byte[])

public CharPtr(byte[] bytes)

Parameters

bytes byte[]

CharPtr(char[])

public CharPtr(char[] chars)

Parameters

chars char[]

CharPtr(char[], int)

public CharPtr(char[] chars, int index)

Parameters

chars char[]
index int

CharPtr(nint)

public CharPtr(nint ptr)

Parameters

ptr nint

CharPtr(string)

public CharPtr(string str)

Parameters

str string

Fields

chars

public char[] chars

Field Value

char[]

index

public int index

Field Value

int

Properties

this[int]

public char this[int offset] { get; set; }

Parameters

offset int

Property Value

char

this[long]

public char this[long offset] { get; set; }

Parameters

offset long

Property Value

char

this[uint]

public char this[uint offset] { get; set; }

Parameters

offset uint

Property Value

char

Methods

Equals(object)

public override bool Equals(object o)

Parameters

o object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

ToString(int)

public string ToString(int length)

Parameters

length int

Returns

string

add(int)

public CharPtr add(int ofs)

Parameters

ofs int

Returns

CharPtr

dec()

public void dec()

inc()

public void inc()

next()

public CharPtr next()

Returns

CharPtr

prev()

public CharPtr prev()

Returns

CharPtr

sub(int)

public CharPtr sub(int ofs)

Parameters

ofs int

Returns

CharPtr

Operators

operator +(CharPtr, CharPtr)

public static CharPtr operator +(CharPtr ptr1, CharPtr ptr2)

Parameters

ptr1 CharPtr
ptr2 CharPtr

Returns

CharPtr

operator +(CharPtr, int)

public static CharPtr operator +(CharPtr ptr, int offset)

Parameters

ptr CharPtr
offset int

Returns

CharPtr

operator +(CharPtr, uint)

public static CharPtr operator +(CharPtr ptr, uint offset)

Parameters

ptr CharPtr
offset uint

Returns

CharPtr

operator ==(CharPtr, CharPtr)

public static bool operator ==(CharPtr ptr1, CharPtr ptr2)

Parameters

ptr1 CharPtr
ptr2 CharPtr

Returns

bool

operator ==(CharPtr, char)

public static bool operator ==(CharPtr ptr, char ch)

Parameters

ptr CharPtr
ch char

Returns

bool

operator ==(char, CharPtr)

public static bool operator ==(char ch, CharPtr ptr)

Parameters

ch char
ptr CharPtr

Returns

bool

operator >(CharPtr, CharPtr)

public static bool operator >(CharPtr ptr1, CharPtr ptr2)

Parameters

ptr1 CharPtr
ptr2 CharPtr

Returns

bool

operator >=(CharPtr, CharPtr)

public static bool operator >=(CharPtr ptr1, CharPtr ptr2)

Parameters

ptr1 CharPtr
ptr2 CharPtr

Returns

bool

implicit operator CharPtr(byte[])

public static implicit operator CharPtr(byte[] bytes)

Parameters

bytes byte[]

Returns

CharPtr

implicit operator CharPtr(char[])

public static implicit operator CharPtr(char[] chars)

Parameters

chars char[]

Returns

CharPtr

implicit operator CharPtr(string)

public static implicit operator CharPtr(string str)

Parameters

str string

Returns

CharPtr

operator !=(CharPtr, CharPtr)

public static bool operator !=(CharPtr ptr1, CharPtr ptr2)

Parameters

ptr1 CharPtr
ptr2 CharPtr

Returns

bool

operator !=(CharPtr, char)

public static bool operator !=(CharPtr ptr, char ch)

Parameters

ptr CharPtr
ch char

Returns

bool

operator !=(char, CharPtr)

public static bool operator !=(char ch, CharPtr ptr)

Parameters

ch char
ptr CharPtr

Returns

bool

operator <(CharPtr, CharPtr)

public static bool operator <(CharPtr ptr1, CharPtr ptr2)

Parameters

ptr1 CharPtr
ptr2 CharPtr

Returns

bool

operator <=(CharPtr, CharPtr)

public static bool operator <=(CharPtr ptr1, CharPtr ptr2)

Parameters

ptr1 CharPtr
ptr2 CharPtr

Returns

bool

operator -(CharPtr, CharPtr)

public static int operator -(CharPtr ptr1, CharPtr ptr2)

Parameters

ptr1 CharPtr
ptr2 CharPtr

Returns

int

operator -(CharPtr, int)

public static CharPtr operator -(CharPtr ptr, int offset)

Parameters

ptr CharPtr
offset int

Returns

CharPtr

operator -(CharPtr, uint)

public static CharPtr operator -(CharPtr ptr, uint offset)

Parameters

ptr CharPtr
offset uint

Returns

CharPtr