C# Class SharpTox.Core.ToxData

Represents Tox data (unencrypted or encrypted).
Mostra file Open project: hexafluoride/Detox Class Usage Examples

Public Methods

Method Description
Equals ( object obj ) : bool
FromBytes ( byte bytes ) : ToxData

Creates a new instance of ToxData from the specified byte array.

FromDisk ( string filename ) : ToxData

Loads Tox data from disk and creates a new instance of ToxData.

GetHashCode ( ) : int
Save ( string filename ) : bool

Saves this Tox data to the disk with the specified filename.

operator ( ) : bool

Private Methods

Method Description
ToxData ( byte data ) : System.IO

Method Details

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

FromBytes() public static method

Creates a new instance of ToxData from the specified byte array.
public static FromBytes ( byte bytes ) : ToxData
bytes byte
return ToxData

FromDisk() public static method

Loads Tox data from disk and creates a new instance of ToxData.
public static FromDisk ( string filename ) : ToxData
filename string
return ToxData

GetHashCode() public method

public GetHashCode ( ) : int
return int

Save() public method

Saves this Tox data to the disk with the specified filename.
public Save ( string filename ) : bool
filename string
return bool

operator() public static method

public static operator ( ) : bool
return bool