Property | Type | Description | |
---|---|---|---|
Empty |
Method | Description | |
---|---|---|
AllocBuffer ( int length, int &offset ) : byte[] |
Allocates a data buffer for a string of a given length.
|
|
CopyTo ( byte buffer, int index ) : void | ||
Equals ( |
Compares this string to another for equality.
|
|
Equals ( object obj ) : bool | ||
FinishBuffer ( byte buffer ) : |
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 ( |
||
IndexOf ( |
||
IndexOf ( |
||
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, |
Initializes a String from a .NET String and the desired byte encoding.
|
|
Substring ( int index ) : |
||
Substring ( int index, int count ) : |
||
ToString ( ) : string | ||
ToString ( |
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 |
|
operator ( ) : |
||
operator ( ) : bool | ||
this ( int index ) : byte |
Method | Description | |
---|---|---|
InternalAllocBuffer ( int length ) : byte[] | ||
InternalCompareOrdinal ( byte a, byte b ) : int | ||
InternalEquals ( byte a, byte b ) : bool | ||
InternalFinishBuffer ( byte buffer ) : |
||
InternalFromData ( byte internalData ) : |
||
InternalGetHashCode ( byte internalData ) : int | ||
UpdateHashCode ( ) : void |
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 |
return | byte[] |
public CopyTo ( byte buffer, int index ) : void | ||
buffer | byte | |
index | int | |
return | void |
public static FinishBuffer ( byte buffer ) : |
||
buffer | byte |
/// The buffer value returned by |
return |
public IndexOf ( |
||
str | ||
index | int | |
return | int |
public IndexOf ( |
||
str | ||
index | int | |
count | int | |
return | int |
public LString ( byte rawBytes ) : System | ||
rawBytes | byte | The byte array. |
return | System |
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. |
return | System |
public LString ( string str, |
||
str | string | The string. |
encoding | The desired encoding. | |
return | System |
public Substring ( int index, int count ) : |
||
index | int | |
count | int | |
return |
public ToString ( |
||
encoding | The encoding to use. | |
return | string |
public UnsafeGetDataBuffer ( byte &buffer, int &index, int &count ) : void | ||
buffer | byte |
/// On exit, the buffer containing the string data. This will be |
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. /// |
return | void |