C# Class BitSharp.Network.NetworkEncoder

Show file Open project: pmlyon/BitSharp Class Usage Examples

Public Methods

Method Description
DecodeAddressPayload ( BinaryReader reader ) : AddressPayload
DecodeAddressPayload ( byte bytes ) : AddressPayload
DecodeAlertPayload ( BinaryReader reader ) : AlertPayload
DecodeAlertPayload ( byte bytes ) : AlertPayload
DecodeGetBlocksPayload ( BinaryReader reader ) : GetBlocksPayload
DecodeGetBlocksPayload ( byte bytes ) : GetBlocksPayload
DecodeInventoryPayload ( BinaryReader reader ) : InventoryPayload
DecodeInventoryPayload ( byte bytes ) : InventoryPayload
DecodeInventoryVector ( BinaryReader reader ) : InventoryVector
DecodeInventoryVector ( byte bytes ) : InventoryVector
DecodeMessage ( BinaryReader reader ) : Message
DecodeMessage ( byte bytes ) : Message
DecodeNetworkAddress ( BinaryReader reader ) : NetworkAddress
DecodeNetworkAddress ( byte bytes ) : NetworkAddress
DecodeNetworkAddressKey ( BinaryReader reader ) : NetworkAddressKey
DecodeNetworkAddressKey ( byte bytes ) : NetworkAddressKey
DecodeNetworkAddressWithTime ( BinaryReader reader ) : NetworkAddressWithTime
DecodeNetworkAddressWithTime ( byte bytes ) : NetworkAddressWithTime
DecodeVersionPayload ( BinaryReader reader, int payloadLength ) : VersionPayload
DecodeVersionPayload ( byte bytes, int payloadLength ) : VersionPayload
EncodeAddressPayload ( AddressPayload addressPayload ) : byte[]
EncodeAddressPayload ( BinaryWriter writer, AddressPayload addressPayload ) : void
EncodeAlertPayload ( AlertPayload alertPayload ) : byte[]
EncodeAlertPayload ( BinaryWriter writer, AlertPayload alertPayload ) : void
EncodeGetBlocksPayload ( GetBlocksPayload getBlocksPayload ) : byte[]
EncodeGetBlocksPayload ( BinaryWriter writer, GetBlocksPayload getBlocksPayload ) : void
EncodeInventoryPayload ( InventoryPayload invPayload ) : byte[]
EncodeInventoryPayload ( BinaryWriter writer, InventoryPayload invPayload ) : void
EncodeInventoryVector ( InventoryVector invVector ) : byte[]
EncodeInventoryVector ( BinaryWriter writer, InventoryVector invVector ) : void
EncodeMessage ( Message message ) : byte[]
EncodeMessage ( BinaryWriter writer, Message message ) : void
EncodeNetworkAddress ( NetworkAddress networkAddress ) : byte[]
EncodeNetworkAddress ( BinaryWriter writer, NetworkAddress networkAddress ) : void
EncodeNetworkAddressKey ( NetworkAddressKey networkAddressKey ) : byte[]
EncodeNetworkAddressKey ( BinaryWriter writer, NetworkAddressKey networkAddressKey ) : void
EncodeNetworkAddressWithTime ( NetworkAddressWithTime networkAddressWithTime ) : byte[]
EncodeNetworkAddressWithTime ( BinaryWriter writer, NetworkAddressWithTime networkAddressWithTime ) : void
EncodeVersionPayload ( VersionPayload versionPayload, bool withRelay ) : byte[]
EncodeVersionPayload ( BinaryWriter writer, VersionPayload versionPayload, bool withRelay ) : void

Method Details

DecodeAddressPayload() public static method

public static DecodeAddressPayload ( BinaryReader reader ) : AddressPayload
reader System.IO.BinaryReader
return AddressPayload

DecodeAddressPayload() public static method

public static DecodeAddressPayload ( byte bytes ) : AddressPayload
bytes byte
return AddressPayload

DecodeAlertPayload() public static method

public static DecodeAlertPayload ( BinaryReader reader ) : AlertPayload
reader System.IO.BinaryReader
return AlertPayload

DecodeAlertPayload() public static method

public static DecodeAlertPayload ( byte bytes ) : AlertPayload
bytes byte
return AlertPayload

DecodeGetBlocksPayload() public static method

public static DecodeGetBlocksPayload ( BinaryReader reader ) : GetBlocksPayload
reader System.IO.BinaryReader
return GetBlocksPayload

DecodeGetBlocksPayload() public static method

public static DecodeGetBlocksPayload ( byte bytes ) : GetBlocksPayload
bytes byte
return GetBlocksPayload

DecodeInventoryPayload() public static method

public static DecodeInventoryPayload ( BinaryReader reader ) : InventoryPayload
reader System.IO.BinaryReader
return InventoryPayload

DecodeInventoryPayload() public static method

public static DecodeInventoryPayload ( byte bytes ) : InventoryPayload
bytes byte
return InventoryPayload

DecodeInventoryVector() public static method

public static DecodeInventoryVector ( BinaryReader reader ) : InventoryVector
reader System.IO.BinaryReader
return InventoryVector

DecodeInventoryVector() public static method

public static DecodeInventoryVector ( byte bytes ) : InventoryVector
bytes byte
return InventoryVector

DecodeMessage() public static method

public static DecodeMessage ( BinaryReader reader ) : Message
reader System.IO.BinaryReader
return Message

DecodeMessage() public static method

public static DecodeMessage ( byte bytes ) : Message
bytes byte
return Message

DecodeNetworkAddress() public static method

public static DecodeNetworkAddress ( BinaryReader reader ) : NetworkAddress
reader System.IO.BinaryReader
return NetworkAddress

DecodeNetworkAddress() public static method

public static DecodeNetworkAddress ( byte bytes ) : NetworkAddress
bytes byte
return NetworkAddress

DecodeNetworkAddressKey() public static method

public static DecodeNetworkAddressKey ( BinaryReader reader ) : NetworkAddressKey
reader System.IO.BinaryReader
return NetworkAddressKey

DecodeNetworkAddressKey() public static method

public static DecodeNetworkAddressKey ( byte bytes ) : NetworkAddressKey
bytes byte
return NetworkAddressKey

DecodeNetworkAddressWithTime() public static method

public static DecodeNetworkAddressWithTime ( BinaryReader reader ) : NetworkAddressWithTime
reader System.IO.BinaryReader
return NetworkAddressWithTime

DecodeNetworkAddressWithTime() public static method

public static DecodeNetworkAddressWithTime ( byte bytes ) : NetworkAddressWithTime
bytes byte
return NetworkAddressWithTime

DecodeVersionPayload() public static method

public static DecodeVersionPayload ( BinaryReader reader, int payloadLength ) : VersionPayload
reader System.IO.BinaryReader
payloadLength int
return VersionPayload

DecodeVersionPayload() public static method

public static DecodeVersionPayload ( byte bytes, int payloadLength ) : VersionPayload
bytes byte
payloadLength int
return VersionPayload

EncodeAddressPayload() public static method

public static EncodeAddressPayload ( AddressPayload addressPayload ) : byte[]
addressPayload AddressPayload
return byte[]

EncodeAddressPayload() public static method

public static EncodeAddressPayload ( BinaryWriter writer, AddressPayload addressPayload ) : void
writer System.IO.BinaryWriter
addressPayload AddressPayload
return void

EncodeAlertPayload() public static method

public static EncodeAlertPayload ( AlertPayload alertPayload ) : byte[]
alertPayload AlertPayload
return byte[]

EncodeAlertPayload() public static method

public static EncodeAlertPayload ( BinaryWriter writer, AlertPayload alertPayload ) : void
writer System.IO.BinaryWriter
alertPayload AlertPayload
return void

EncodeGetBlocksPayload() public static method

public static EncodeGetBlocksPayload ( GetBlocksPayload getBlocksPayload ) : byte[]
getBlocksPayload GetBlocksPayload
return byte[]

EncodeGetBlocksPayload() public static method

public static EncodeGetBlocksPayload ( BinaryWriter writer, GetBlocksPayload getBlocksPayload ) : void
writer System.IO.BinaryWriter
getBlocksPayload GetBlocksPayload
return void

EncodeInventoryPayload() public static method

public static EncodeInventoryPayload ( InventoryPayload invPayload ) : byte[]
invPayload InventoryPayload
return byte[]

EncodeInventoryPayload() public static method

public static EncodeInventoryPayload ( BinaryWriter writer, InventoryPayload invPayload ) : void
writer System.IO.BinaryWriter
invPayload InventoryPayload
return void

EncodeInventoryVector() public static method

public static EncodeInventoryVector ( InventoryVector invVector ) : byte[]
invVector InventoryVector
return byte[]

EncodeInventoryVector() public static method

public static EncodeInventoryVector ( BinaryWriter writer, InventoryVector invVector ) : void
writer System.IO.BinaryWriter
invVector InventoryVector
return void

EncodeMessage() public static method

public static EncodeMessage ( Message message ) : byte[]
message Message
return byte[]

EncodeMessage() public static method

public static EncodeMessage ( BinaryWriter writer, Message message ) : void
writer System.IO.BinaryWriter
message Message
return void

EncodeNetworkAddress() public static method

public static EncodeNetworkAddress ( NetworkAddress networkAddress ) : byte[]
networkAddress NetworkAddress
return byte[]

EncodeNetworkAddress() public static method

public static EncodeNetworkAddress ( BinaryWriter writer, NetworkAddress networkAddress ) : void
writer System.IO.BinaryWriter
networkAddress NetworkAddress
return void

EncodeNetworkAddressKey() public static method

public static EncodeNetworkAddressKey ( NetworkAddressKey networkAddressKey ) : byte[]
networkAddressKey NetworkAddressKey
return byte[]

EncodeNetworkAddressKey() public static method

public static EncodeNetworkAddressKey ( BinaryWriter writer, NetworkAddressKey networkAddressKey ) : void
writer System.IO.BinaryWriter
networkAddressKey NetworkAddressKey
return void

EncodeNetworkAddressWithTime() public static method

public static EncodeNetworkAddressWithTime ( NetworkAddressWithTime networkAddressWithTime ) : byte[]
networkAddressWithTime NetworkAddressWithTime
return byte[]

EncodeNetworkAddressWithTime() public static method

public static EncodeNetworkAddressWithTime ( BinaryWriter writer, NetworkAddressWithTime networkAddressWithTime ) : void
writer System.IO.BinaryWriter
networkAddressWithTime NetworkAddressWithTime
return void

EncodeVersionPayload() public static method

public static EncodeVersionPayload ( VersionPayload versionPayload, bool withRelay ) : byte[]
versionPayload VersionPayload
withRelay bool
return byte[]

EncodeVersionPayload() public static method

public static EncodeVersionPayload ( BinaryWriter writer, VersionPayload versionPayload, bool withRelay ) : void
writer System.IO.BinaryWriter
versionPayload VersionPayload
withRelay bool
return void