C# Class BitSharp.Network.NetworkEncoder

Afficher le fichier Open project: pmlyon/BitSharp Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public static DecodeAddressPayload ( BinaryReader reader ) : AddressPayload
reader System.IO.BinaryReader
Résultat AddressPayload

DecodeAddressPayload() public static méthode

public static DecodeAddressPayload ( byte bytes ) : AddressPayload
bytes byte
Résultat AddressPayload

DecodeAlertPayload() public static méthode

public static DecodeAlertPayload ( BinaryReader reader ) : AlertPayload
reader System.IO.BinaryReader
Résultat AlertPayload

DecodeAlertPayload() public static méthode

public static DecodeAlertPayload ( byte bytes ) : AlertPayload
bytes byte
Résultat AlertPayload

DecodeGetBlocksPayload() public static méthode

public static DecodeGetBlocksPayload ( BinaryReader reader ) : GetBlocksPayload
reader System.IO.BinaryReader
Résultat GetBlocksPayload

DecodeGetBlocksPayload() public static méthode

public static DecodeGetBlocksPayload ( byte bytes ) : GetBlocksPayload
bytes byte
Résultat GetBlocksPayload

DecodeInventoryPayload() public static méthode

public static DecodeInventoryPayload ( BinaryReader reader ) : InventoryPayload
reader System.IO.BinaryReader
Résultat InventoryPayload

DecodeInventoryPayload() public static méthode

public static DecodeInventoryPayload ( byte bytes ) : InventoryPayload
bytes byte
Résultat InventoryPayload

DecodeInventoryVector() public static méthode

public static DecodeInventoryVector ( BinaryReader reader ) : InventoryVector
reader System.IO.BinaryReader
Résultat InventoryVector

DecodeInventoryVector() public static méthode

public static DecodeInventoryVector ( byte bytes ) : InventoryVector
bytes byte
Résultat InventoryVector

DecodeMessage() public static méthode

public static DecodeMessage ( BinaryReader reader ) : Message
reader System.IO.BinaryReader
Résultat Message

DecodeMessage() public static méthode

public static DecodeMessage ( byte bytes ) : Message
bytes byte
Résultat Message

DecodeNetworkAddress() public static méthode

public static DecodeNetworkAddress ( BinaryReader reader ) : NetworkAddress
reader System.IO.BinaryReader
Résultat NetworkAddress

DecodeNetworkAddress() public static méthode

public static DecodeNetworkAddress ( byte bytes ) : NetworkAddress
bytes byte
Résultat NetworkAddress

DecodeNetworkAddressKey() public static méthode

public static DecodeNetworkAddressKey ( BinaryReader reader ) : NetworkAddressKey
reader System.IO.BinaryReader
Résultat NetworkAddressKey

DecodeNetworkAddressKey() public static méthode

public static DecodeNetworkAddressKey ( byte bytes ) : NetworkAddressKey
bytes byte
Résultat NetworkAddressKey

DecodeNetworkAddressWithTime() public static méthode

public static DecodeNetworkAddressWithTime ( BinaryReader reader ) : NetworkAddressWithTime
reader System.IO.BinaryReader
Résultat NetworkAddressWithTime

DecodeNetworkAddressWithTime() public static méthode

public static DecodeNetworkAddressWithTime ( byte bytes ) : NetworkAddressWithTime
bytes byte
Résultat NetworkAddressWithTime

DecodeVersionPayload() public static méthode

public static DecodeVersionPayload ( BinaryReader reader, int payloadLength ) : VersionPayload
reader System.IO.BinaryReader
payloadLength int
Résultat VersionPayload

DecodeVersionPayload() public static méthode

public static DecodeVersionPayload ( byte bytes, int payloadLength ) : VersionPayload
bytes byte
payloadLength int
Résultat VersionPayload

EncodeAddressPayload() public static méthode

public static EncodeAddressPayload ( AddressPayload addressPayload ) : byte[]
addressPayload AddressPayload
Résultat byte[]

EncodeAddressPayload() public static méthode

public static EncodeAddressPayload ( BinaryWriter writer, AddressPayload addressPayload ) : void
writer System.IO.BinaryWriter
addressPayload AddressPayload
Résultat void

EncodeAlertPayload() public static méthode

public static EncodeAlertPayload ( AlertPayload alertPayload ) : byte[]
alertPayload AlertPayload
Résultat byte[]

EncodeAlertPayload() public static méthode

public static EncodeAlertPayload ( BinaryWriter writer, AlertPayload alertPayload ) : void
writer System.IO.BinaryWriter
alertPayload AlertPayload
Résultat void

EncodeGetBlocksPayload() public static méthode

public static EncodeGetBlocksPayload ( GetBlocksPayload getBlocksPayload ) : byte[]
getBlocksPayload GetBlocksPayload
Résultat byte[]

EncodeGetBlocksPayload() public static méthode

public static EncodeGetBlocksPayload ( BinaryWriter writer, GetBlocksPayload getBlocksPayload ) : void
writer System.IO.BinaryWriter
getBlocksPayload GetBlocksPayload
Résultat void

EncodeInventoryPayload() public static méthode

public static EncodeInventoryPayload ( InventoryPayload invPayload ) : byte[]
invPayload InventoryPayload
Résultat byte[]

EncodeInventoryPayload() public static méthode

public static EncodeInventoryPayload ( BinaryWriter writer, InventoryPayload invPayload ) : void
writer System.IO.BinaryWriter
invPayload InventoryPayload
Résultat void

EncodeInventoryVector() public static méthode

public static EncodeInventoryVector ( InventoryVector invVector ) : byte[]
invVector InventoryVector
Résultat byte[]

EncodeInventoryVector() public static méthode

public static EncodeInventoryVector ( BinaryWriter writer, InventoryVector invVector ) : void
writer System.IO.BinaryWriter
invVector InventoryVector
Résultat void

EncodeMessage() public static méthode

public static EncodeMessage ( Message message ) : byte[]
message Message
Résultat byte[]

EncodeMessage() public static méthode

public static EncodeMessage ( BinaryWriter writer, Message message ) : void
writer System.IO.BinaryWriter
message Message
Résultat void

EncodeNetworkAddress() public static méthode

public static EncodeNetworkAddress ( NetworkAddress networkAddress ) : byte[]
networkAddress NetworkAddress
Résultat byte[]

EncodeNetworkAddress() public static méthode

public static EncodeNetworkAddress ( BinaryWriter writer, NetworkAddress networkAddress ) : void
writer System.IO.BinaryWriter
networkAddress NetworkAddress
Résultat void

EncodeNetworkAddressKey() public static méthode

public static EncodeNetworkAddressKey ( NetworkAddressKey networkAddressKey ) : byte[]
networkAddressKey NetworkAddressKey
Résultat byte[]

EncodeNetworkAddressKey() public static méthode

public static EncodeNetworkAddressKey ( BinaryWriter writer, NetworkAddressKey networkAddressKey ) : void
writer System.IO.BinaryWriter
networkAddressKey NetworkAddressKey
Résultat void

EncodeNetworkAddressWithTime() public static méthode

public static EncodeNetworkAddressWithTime ( NetworkAddressWithTime networkAddressWithTime ) : byte[]
networkAddressWithTime NetworkAddressWithTime
Résultat byte[]

EncodeNetworkAddressWithTime() public static méthode

public static EncodeNetworkAddressWithTime ( BinaryWriter writer, NetworkAddressWithTime networkAddressWithTime ) : void
writer System.IO.BinaryWriter
networkAddressWithTime NetworkAddressWithTime
Résultat void

EncodeVersionPayload() public static méthode

public static EncodeVersionPayload ( VersionPayload versionPayload, bool withRelay ) : byte[]
versionPayload VersionPayload
withRelay bool
Résultat byte[]

EncodeVersionPayload() public static méthode

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