C# 클래스 SharpTox.Core.ToxId

Represents a Tox ID (38 bytes long)
파일 보기 프로젝트 열기: hexafluoride/Detox 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CalcChecksum ushort
ToxId System
ToxId System

공개 메소드들

메소드 설명
Equals ( object obj ) : bool
GetHashCode ( ) : int
IsValid ( byte id ) : bool

Checks whether or not the given Tox ID is valid.

IsValid ( string id ) : bool

Checks whether or not the given Tox ID is valid.

ToString ( ) : string
ToxId ( byte id ) : System

Initializes a new instance of the ToxId class.

ToxId ( string id ) : System

Initializes a new instance of the ToxId class.

operator ( ) : bool

비공개 메소드들

메소드 설명
CalcChecksum ( byte address, int length ) : ushort
ToxId ( byte publicKey, uint nospam ) : System
ToxId ( string publicKey, uint nospam ) : System

메소드 상세

Equals() 공개 메소드

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

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

IsValid() 공개 정적인 메소드

Checks whether or not the given Tox ID is valid.
public static IsValid ( byte id ) : bool
id byte A byte array with a length of ToxConstant.AddressSize, containing a Tox ID.
리턴 bool

IsValid() 공개 정적인 메소드

Checks whether or not the given Tox ID is valid.
public static IsValid ( string id ) : bool
id string A (ToxConstant.AddressSize * 2) character long hexadecimal string, containing a Tox ID.
리턴 bool

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

ToxId() 공개 메소드

Initializes a new instance of the ToxId class.
public ToxId ( byte id ) : System
id byte A byte array with a length of ToxConstant.AddressSize, containing a Tox ID.
리턴 System

ToxId() 공개 메소드

Initializes a new instance of the ToxId class.
public ToxId ( string id ) : System
id string A (ToxConstant.AddressSize * 2) character long hexadecimal string, containing a Tox ID.
리턴 System

operator() 공개 정적인 메소드

public static operator ( ) : bool
리턴 bool