C# 클래스 Henchmen.Lua.LString

파일 보기 프로젝트 열기: henchmeninteractive/HenchLua 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Empty LString

공개 메소드들

메소드 설명
AllocBuffer ( int length, int &offset ) : byte[]

Allocates a data buffer for a string of a given length.

CopyTo ( byte buffer, int index ) : void
Equals ( LString other ) : bool

Compares this string to another for equality.

Equals ( object obj ) : bool
FinishBuffer ( byte buffer ) : LString

Finishes construction of a string from a preallocated buffer.

The buffer must be fully initialized before this function is called. The buffer must be treated as read-only after this call. Modifying it will have unpredictable results.

GetHashCode ( ) : int
IndexOf ( LString str ) : int
IndexOf ( LString str, int index ) : int
IndexOf ( LString str, int index, int count ) : int
LString ( byte rawBytes ) : System

Initializes a String from an array of raw bytes.

LString ( byte rawBytes, int index, int count ) : System

Initializes a String from an array of raw bytes.

LString ( string str ) : System

Initializes a String from a .NET String using UTF8.

LString ( string str, Encoding encoding ) : System

Initializes a String from a .NET String and the desired byte encoding.

Substring ( int index ) : LString
Substring ( int index, int count ) : LString
ToString ( ) : string
ToString ( Encoding encoding ) : string

Gets the string's contents as a .NET string using the specified encoding.

UnsafeGetDataBuffer ( byte &buffer, int &index, int &count ) : void

Gets the string's raw data buffer.

Things will break (and break badly) if you modify the contents of this buffer. That's why this method is tagged Unsafe.

operator ( ) : LString
operator ( ) : bool
this ( int index ) : byte

비공개 메소드들

메소드 설명
InternalAllocBuffer ( int length ) : byte[]
InternalCompareOrdinal ( byte a, byte b ) : int
InternalEquals ( byte a, byte b ) : bool
InternalFinishBuffer ( byte buffer ) : LString
InternalFromData ( byte internalData ) : LString
InternalGetHashCode ( byte internalData ) : int
UpdateHashCode ( ) : void

메소드 상세

AllocBuffer() 공개 정적인 메소드

Allocates a data buffer for a string of a given length.
public static AllocBuffer ( int length, int &offset ) : byte[]
length int /// The length of the buffer to allocate. ///
offset int /// The offset in the returned buffer to write your data at. /// Do not write data before this position or after offset + length. ///
리턴 byte[]

CopyTo() 공개 메소드

public CopyTo ( byte buffer, int index ) : void
buffer byte
index int
리턴 void

Equals() 공개 메소드

Compares this string to another for equality.
public Equals ( LString other ) : bool
other LString
리턴 bool

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

FinishBuffer() 공개 정적인 메소드

Finishes construction of a string from a preallocated buffer.
The buffer must be fully initialized before this function is called. The buffer must be treated as read-only after this call. Modifying it will have unpredictable results.
public static FinishBuffer ( byte buffer ) : LString
buffer byte /// The buffer value returned by . ///
리턴 LString

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

IndexOf() 공개 메소드

public IndexOf ( LString str ) : int
str LString
리턴 int

IndexOf() 공개 메소드

public IndexOf ( LString str, int index ) : int
str LString
index int
리턴 int

IndexOf() 공개 메소드

public IndexOf ( LString str, int index, int count ) : int
str LString
index int
count int
리턴 int

LString() 공개 메소드

Initializes a String from an array of raw bytes.
public LString ( byte rawBytes ) : System
rawBytes byte The byte array.
리턴 System

LString() 공개 메소드

Initializes a String from an array of raw bytes.
public LString ( byte rawBytes, int index, int count ) : System
rawBytes byte The byte array.
index int The start of the subrange to use.
count int The length of the subrange to use.
리턴 System

LString() 공개 메소드

Initializes a String from a .NET String using UTF8.
public LString ( string str ) : System
str string The string.
리턴 System

LString() 공개 메소드

Initializes a String from a .NET String and the desired byte encoding.
public LString ( string str, Encoding encoding ) : System
str string The string.
encoding System.Text.Encoding The desired encoding.
리턴 System

Substring() 공개 메소드

public Substring ( int index ) : LString
index int
리턴 LString

Substring() 공개 메소드

public Substring ( int index, int count ) : LString
index int
count int
리턴 LString

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

ToString() 공개 메소드

Gets the string's contents as a .NET string using the specified encoding.
public ToString ( Encoding encoding ) : string
encoding System.Text.Encoding The encoding to use.
리턴 string

UnsafeGetDataBuffer() 공개 메소드

Gets the string's raw data buffer.
Things will break (and break badly) if you modify the contents of this buffer. That's why this method is tagged Unsafe.
public UnsafeGetDataBuffer ( byte &buffer, int &index, int &count ) : void
buffer byte /// On exit, the buffer containing the string data. This will be null for nil strings. ///
index int /// On exit, the index in the buffer where the string data begins. This will be -1 for nil strings. ///
count int /// On exit, the length of the string data. This will be zero for nil strings. ///
리턴 void

operator() 공개 정적인 메소드

public static operator ( ) : LString
리턴 LString

operator() 공개 정적인 메소드

public static operator ( ) : bool
리턴 bool

this() 공개 메소드

public this ( int index ) : byte
index int
리턴 byte

프로퍼티 상세

Empty 공개적으로 정적으로 프로퍼티

public static LString,Henchmen.Lua Empty
리턴 LString