C# 클래스 SharpOS.Kernel.Foundation.PString8

Represents a length-prefixed C-style string (null-terminated). This type can be used as a string buffer,
파일 보기 프로젝트 열기: sharpos/SharpOS 1 사용 예제들

공개 메소드들

메소드 설명
Clear ( ) : void
Compare ( CString8 str ) : int

Compares the string against str.

Compare ( CString8 str, int count ) : int

Compares count characters of the string against str.

Compare ( PString8 str ) : int

Compares the string against str.

Compare ( PString8 str, int count ) : int

Compares count characters of the string against str.

Compare ( byte str, int count ) : int

Compares count characters of the string against str.

Compare ( string str ) : int

Compares the string against str.

Compare ( string str, int count ) : int

Compares count characters of the string against str.

Concat ( byte character ) : bool

Concatenates character

Concat ( CString8 str ) : int

Concatenates str.

Concat ( CString8 str, int offset, int len ) : int

Concatenates from str the characters at indices offset to offset + len.

Concat ( PString8 str ) : int

Concatenates str.

Concat ( PString8 str, int offset, int len ) : int

Concatenates from str the characters at indices offset to offset + len.

Concat ( byte str ) : int
Concat ( byte str, int len ) : int
Concat ( int number ) : int
Concat ( int number, bool hex ) : int
Concat ( string str ) : int

Concatenates str.

Concat ( string str, int offset, int len ) : int

Concatenates from str the characters at indices offset to offset + len.

ConcatLine ( ) : void

GetChar ( int index ) : byte
GetChar ( int index, bool boundsCheck ) : byte

If boundsCheck is true, makes sure index is in bounds, then gets the character index from the string.

SetChar ( int index, byte value ) : void
SetChar ( int index, byte value, bool boundsCheck ) : void
Wrap ( void buffer, int bufferSize ) : PString8*

Wraps a data buffer into a PString8 pointer and initializes the Capacity field to bufferSize minus the size of the PString8 structure. bufferSize should be the entire size of the allocation.

__Test1 ( ) : void

비공개 메소드들

메소드 설명
Concat ( byte str, int strLen, int offset, int len ) : int

Internal common implementation of Concat(). The strLen parameter is the length of the string in buffer str, determined using the fastest possible method for the string type. This causes slightly faster performance for string types that store the length of the string (as opposed to null termination).

__RunTests ( ) : void

메소드 상세

Clear() 공개 메소드

public Clear ( ) : void
리턴 void

Compare() 공개 메소드

Compares the string against str.
public Compare ( CString8 str ) : int
str CString8
리턴 int

Compare() 공개 메소드

Compares count characters of the string against str.
public Compare ( CString8 str, int count ) : int
str CString8
count int
리턴 int

Compare() 공개 메소드

Compares the string against str.
public Compare ( PString8 str ) : int
str PString8
리턴 int

Compare() 공개 메소드

Compares count characters of the string against str.
public Compare ( PString8 str, int count ) : int
str PString8
count int
리턴 int

Compare() 공개 메소드

Compares count characters of the string against str.
public Compare ( byte str, int count ) : int
str byte
count int
리턴 int

Compare() 공개 메소드

Compares the string against str.
public Compare ( string str ) : int
str string
리턴 int

Compare() 공개 메소드

Compares count characters of the string against str.
public Compare ( string str, int count ) : int
str string
count int
리턴 int

Concat() 공개 메소드

Concatenates character
public Concat ( byte character ) : bool
character byte
리턴 bool

Concat() 공개 메소드

Concatenates str.
public Concat ( CString8 str ) : int
str CString8
리턴 int

Concat() 공개 메소드

Concatenates from str the characters at indices offset to offset + len.
public Concat ( CString8 str, int offset, int len ) : int
str CString8
offset int
len int
리턴 int

Concat() 공개 메소드

Concatenates str.
public Concat ( PString8 str ) : int
str PString8
리턴 int

Concat() 공개 메소드

Concatenates from str the characters at indices offset to offset + len.
public Concat ( PString8 str, int offset, int len ) : int
str PString8
offset int
len int
리턴 int

Concat() 공개 메소드

public Concat ( byte str ) : int
str byte
리턴 int

Concat() 공개 메소드

public Concat ( byte str, int len ) : int
str byte
len int
리턴 int

Concat() 공개 메소드

public Concat ( int number ) : int
number int
리턴 int

Concat() 공개 메소드

public Concat ( int number, bool hex ) : int
number int
hex bool
리턴 int

Concat() 공개 메소드

Concatenates str.
public Concat ( string str ) : int
str string
리턴 int

Concat() 공개 메소드

Concatenates from str the characters at indices offset to offset + len.
public Concat ( string str, int offset, int len ) : int
str string
offset int
len int
리턴 int

ConcatLine() 공개 메소드

public ConcatLine ( ) : void
리턴 void

GetChar() 공개 메소드

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

GetChar() 공개 메소드

If boundsCheck is true, makes sure index is in bounds, then gets the character index from the string.
public GetChar ( int index, bool boundsCheck ) : byte
index int
boundsCheck bool
리턴 byte

SetChar() 공개 메소드

public SetChar ( int index, byte value ) : void
index int
value byte
리턴 void

SetChar() 공개 메소드

public SetChar ( int index, byte value, bool boundsCheck ) : void
index int
value byte
boundsCheck bool
리턴 void

Wrap() 공개 정적인 메소드

Wraps a data buffer into a PString8 pointer and initializes the Capacity field to bufferSize minus the size of the PString8 structure. bufferSize should be the entire size of the allocation.
public static Wrap ( void buffer, int bufferSize ) : PString8*
buffer void
bufferSize int
리턴 PString8*

__Test1() 공개 정적인 메소드

public static __Test1 ( ) : void
리턴 void