C# Class NoxMsgConsole.Util.BitcoinSerializableExtensions

ファイルを表示 Open project: cybergibbons/bitfi_09072019

Public Methods

Method Description
Clone ( T serializable, ProtocolVersion version = ProtocolVersion.PROTOCOL_VERSION ) : T
FromBytes ( IBitcoinSerializable serializable, Array bytes, ProtocolVersion version = ProtocolVersion.PROTOCOL_VERSION ) : void
GetSerializedSize ( IBitcoinSerializable serializable, ProtocolVersion version = ProtocolVersion.PROTOCOL_VERSION ) : int
GetSerializedSize ( IBitcoinSerializable serializable, ProtocolVersion version, SerializationType serializationType ) : int
GetSerializedSize ( IBitcoinSerializable serializable, TransactionOptions options ) : int
ReadWrite ( IBitcoinSerializable serializable, Array bytes, ProtocolVersion version = ProtocolVersion.PROTOCOL_VERSION ) : void
ReadWrite ( IBitcoinSerializable serializable, Stream stream, bool serializing, ProtocolVersion version = ProtocolVersion.PROTOCOL_VERSION ) : void
ToArrayEfficient ( MemoryStream ms ) : byte[]
ToBytes ( IBitcoinSerializable serializable, ProtocolVersion version = ProtocolVersion.PROTOCOL_VERSION ) : byte[]

Method Details

Clone() public static method

public static Clone ( T serializable, ProtocolVersion version = ProtocolVersion.PROTOCOL_VERSION ) : T
serializable T
version ProtocolVersion
return T

FromBytes() public static method

public static FromBytes ( IBitcoinSerializable serializable, Array bytes, ProtocolVersion version = ProtocolVersion.PROTOCOL_VERSION ) : void
serializable IBitcoinSerializable
bytes Array
version ProtocolVersion
return void

GetSerializedSize() public static method

public static GetSerializedSize ( IBitcoinSerializable serializable, ProtocolVersion version = ProtocolVersion.PROTOCOL_VERSION ) : int
serializable IBitcoinSerializable
version ProtocolVersion
return int

GetSerializedSize() public static method

public static GetSerializedSize ( IBitcoinSerializable serializable, ProtocolVersion version, SerializationType serializationType ) : int
serializable IBitcoinSerializable
version ProtocolVersion
serializationType SerializationType
return int

GetSerializedSize() public static method

public static GetSerializedSize ( IBitcoinSerializable serializable, TransactionOptions options ) : int
serializable IBitcoinSerializable
options TransactionOptions
return int

ReadWrite() public static method

public static ReadWrite ( IBitcoinSerializable serializable, Array bytes, ProtocolVersion version = ProtocolVersion.PROTOCOL_VERSION ) : void
serializable IBitcoinSerializable
bytes Array
version ProtocolVersion
return void

ReadWrite() public static method

public static ReadWrite ( IBitcoinSerializable serializable, Stream stream, bool serializing, ProtocolVersion version = ProtocolVersion.PROTOCOL_VERSION ) : void
serializable IBitcoinSerializable
stream Stream
serializing bool
version ProtocolVersion
return void

ToArrayEfficient() public static method

public static ToArrayEfficient ( MemoryStream ms ) : byte[]
ms MemoryStream
return byte[]

ToBytes() public static method

public static ToBytes ( IBitcoinSerializable serializable, ProtocolVersion version = ProtocolVersion.PROTOCOL_VERSION ) : byte[]
serializable IBitcoinSerializable
version ProtocolVersion
return byte[]