C# Class Miracle.FileZilla.Api.Option

Class used to transfer a single option to/from FileZilla server
Inheritance: IBinarySerializable
显示文件 Open project: PolarbearDK/Miracle.FileZilla.Api

Public Methods

Method Description
Deserialize ( BinaryReader reader, int protocolVersion, int index ) : void

Deserialise FileZilla binary data into object

Serialize ( BinaryWriter writer, int protocolVersion, int index ) : void

Serialise object into FileZilla binary data

Private Methods

Method Description
GetOptionInfo ( int protocolVersion, int index ) : OptionInfo

Get OptionInfo for index of Settings.Options.

Method Details

Deserialize() public method

Deserialise FileZilla binary data into object
public Deserialize ( BinaryReader reader, int protocolVersion, int index ) : void
reader System.IO.BinaryReader Binary reader to read data from
protocolVersion int Current FileZilla protocol version
index int The 0 based index of this item in relation to any parent list
return void

Serialize() public method

Serialise object into FileZilla binary data
public Serialize ( BinaryWriter writer, int protocolVersion, int index ) : void
writer BinaryWriter Binary writer to write data to
protocolVersion int Current FileZilla protocol version
index int The 0 based index of this item in relation to any parent list
return void