C# Class SharpOS.Kernel.Foundation.ByteString

显示文件 Open project: sharpos/SharpOS Class Usage Examples

Public Methods

Method Description
Compare ( byte a, byte b ) : int
Compare ( byte a, byte b, int count ) : int
Compare ( byte a, int aFrom, byte b, int bFrom, int count ) : int
Compare ( byte a, int aFrom, string b, int bFrom, int count ) : int
Compare ( byte a, string b ) : int
Compare ( byte a, string b, int count ) : int
Concat ( byte buffer, int size, byte src, int count ) : void

Concatenates count bytes of the string in buffer src to the end of the string in buffer buffer.

Copy ( byte buffer, int size, byte src, int index, int count ) : void
GetBytes ( string src, byte dst, int size ) : bool
Length ( byte str ) : int
__Test1 ( ) : void

Private Methods

Method Description
__RunTests ( ) : void

Method Details

Compare() public static method

public static Compare ( byte a, byte b ) : int
a byte
b byte
return int

Compare() public static method

public static Compare ( byte a, byte b, int count ) : int
a byte
b byte
count int
return int

Compare() public static method

public static Compare ( byte a, int aFrom, byte b, int bFrom, int count ) : int
a byte
aFrom int
b byte
bFrom int
count int
return int

Compare() public static method

public static Compare ( byte a, int aFrom, string b, int bFrom, int count ) : int
a byte
aFrom int
b string
bFrom int
count int
return int

Compare() public static method

public static Compare ( byte a, string b ) : int
a byte
b string
return int

Compare() public static method

public static Compare ( byte a, string b, int count ) : int
a byte
b string
count int
return int

Concat() public static method

Concatenates count bytes of the string in buffer src to the end of the string in buffer buffer.
public static Concat ( byte buffer, int size, byte src, int count ) : void
buffer byte
size int
src byte
count int
return void

Copy() public static method

public static Copy ( byte buffer, int size, byte src, int index, int count ) : void
buffer byte
size int
src byte
index int
count int
return void

GetBytes() public static method

public static GetBytes ( string src, byte dst, int size ) : bool
src string
dst byte
size int
return bool

Length() public static method

public static Length ( byte str ) : int
str byte
return int

__Test1() public static method

public static __Test1 ( ) : void
return void