C# Класс SharpOS.Kernel.Foundation.Convert

Показать файл Открыть проект

Открытые методы

Метод Описание
ToAscii ( char value ) : byte

Converts character to ascii representation. If unicode character is outside the range of an Ascii character then Convert.NonAsciiCharacter is returned.

ToAscii ( char value ) : byte[]

Converts the array of characters to ascii representation. If unicode character is outside the range of an Ascii character then Convert.NonAsciiCharacter is returned in its place.

ToAscii ( string value ) : byte[]

Converts string to its ascii representation. If unicode character is outside the range of an Ascii character then Convert.NonAsciiCharacter is returned in its place.

ToByteString ( string str, byte buffer, int bufferLen, int offset ) : int
ToCString8 ( char value ) : CString8*

Converts character to an ascii c like string representation. If unicode character is outside the range of an Ascii character then Convert.NonAsciiCharacter is returned.

ToCString8 ( string value ) : CString8*

Converts string to its ascii representation terminating with null. If unicode character is outside the range of an Ascii character then Convert.NonAsciiCharacter is returned in its place.

ToInt32 ( CString8 str ) : int
ToInt32 ( CString8 str, int offset, int length ) : int
ToInt32 ( PString8 str ) : int
ToInt32 ( PString8 str, int offset, int length ) : int
ToInt32 ( byte buffer, int offset, int length, int capacity ) : int
ToString ( int value, bool hex ) : CString8*
ToString ( long value, bool hex ) : CString8*
ToString ( int value, bool hex, byte buffer, int bufferLen, int offset ) : int
ToString ( long value, bool hex, byte buffer, int bufferLen, int offset ) : int
ToString ( uint value, bool hex, byte buffer, int bufferLen, int offset ) : int
ToString ( CString8 cstring ) : string
ToString ( char val ) : string
ToString ( char val, int startIndex, int length ) : string
__Test1 ( ) : void

Runs tests on the int to string conversions.

__Test2 ( ) : void

Runs tests on the long to string conversions.

__Test3 ( ) : void

Приватные методы

Метод Описание
ToString ( int value, bool hex, bool signed, byte buffer, int bufferLen, int offset ) : int
__RunTests ( ) : void
__StringComp ( CString8 str1, CString8 str2 ) : bool

Описание методов

ToAscii() публичный статический Метод

Converts character to ascii representation. If unicode character is outside the range of an Ascii character then Convert.NonAsciiCharacter is returned.
public static ToAscii ( char value ) : byte
value char Character to be converted
Результат byte

ToAscii() публичный статический Метод

Converts the array of characters to ascii representation. If unicode character is outside the range of an Ascii character then Convert.NonAsciiCharacter is returned in its place.
public static ToAscii ( char value ) : byte[]
value char Array of Characters to Converted ///
Результат byte[]

ToAscii() публичный статический Метод

Converts string to its ascii representation. If unicode character is outside the range of an Ascii character then Convert.NonAsciiCharacter is returned in its place.
public static ToAscii ( string value ) : byte[]
value string string to be converted
Результат byte[]

ToByteString() публичный статический Метод

public static ToByteString ( string str, byte buffer, int bufferLen, int offset ) : int
str string
buffer byte
bufferLen int
offset int
Результат int

ToCString8() публичный статический Метод

Converts character to an ascii c like string representation. If unicode character is outside the range of an Ascii character then Convert.NonAsciiCharacter is returned.
public static ToCString8 ( char value ) : CString8*
value char char to be converted
Результат CString8*

ToCString8() публичный статический Метод

Converts string to its ascii representation terminating with null. If unicode character is outside the range of an Ascii character then Convert.NonAsciiCharacter is returned in its place.
public static ToCString8 ( string value ) : CString8*
value string
Результат CString8*

ToInt32() публичный статический Метод

public static ToInt32 ( CString8 str ) : int
str CString8
Результат int

ToInt32() публичный статический Метод

public static ToInt32 ( CString8 str, int offset, int length ) : int
str CString8
offset int
length int
Результат int

ToInt32() публичный статический Метод

public static ToInt32 ( PString8 str ) : int
str PString8
Результат int

ToInt32() публичный статический Метод

public static ToInt32 ( PString8 str, int offset, int length ) : int
str PString8
offset int
length int
Результат int

ToInt32() публичный статический Метод

public static ToInt32 ( byte buffer, int offset, int length, int capacity ) : int
buffer byte
offset int
length int
capacity int
Результат int

ToString() публичный статический Метод

public static ToString ( int value, bool hex ) : CString8*
value int
hex bool
Результат CString8*

ToString() публичный статический Метод

public static ToString ( long value, bool hex ) : CString8*
value long
hex bool
Результат CString8*

ToString() публичный статический Метод

public static ToString ( int value, bool hex, byte buffer, int bufferLen, int offset ) : int
value int
hex bool
buffer byte
bufferLen int
offset int
Результат int

ToString() публичный статический Метод

public static ToString ( long value, bool hex, byte buffer, int bufferLen, int offset ) : int
value long
hex bool
buffer byte
bufferLen int
offset int
Результат int

ToString() публичный статический Метод

public static ToString ( uint value, bool hex, byte buffer, int bufferLen, int offset ) : int
value uint
hex bool
buffer byte
bufferLen int
offset int
Результат int

ToString() статический публичный Метод

static public ToString ( CString8 cstring ) : string
cstring CString8
Результат string

ToString() статический публичный Метод

static public ToString ( char val ) : string
val char
Результат string

ToString() статический публичный Метод

static public ToString ( char val, int startIndex, int length ) : string
val char
startIndex int
length int
Результат string

__Test1() публичный статический Метод

Runs tests on the int to string conversions.
public static __Test1 ( ) : void
Результат void

__Test2() публичный статический Метод

Runs tests on the long to string conversions.
public static __Test2 ( ) : void
Результат void

__Test3() публичный статический Метод

public static __Test3 ( ) : void
Результат void