C# Class BitSharper.Message

Show file Open project: TangibleCryptography/BitSharper Class Usage Examples

Private Properties

Property Type Description
Message System
Message System
ReadBytes byte[]
ReadHash Sha256Hash
ReadStr string
ReadUint32 uint
ReadUint64 ulong
ReadVarInt ulong

Public Methods

Method Description
BitcoinSerialize ( ) : byte[]
BitcoinSerializeToStream ( Stream stream ) : void

Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().

Protected Methods

Method Description
Message ( ) : System

This exists for the Java serialization framework to use only.

Parse ( ) : void

Private Methods

Method Description
Message ( NetworkParameters @params ) : System
Message ( NetworkParameters @params, byte msg, int offset, uint protocolVersion = NetworkParameters.ProtocolVersion ) : System
ReadBytes ( int length ) : byte[]
ReadHash ( ) : Sha256Hash
ReadStr ( ) : string
ReadUint32 ( ) : uint
ReadUint64 ( ) : ulong
ReadVarInt ( ) : ulong

Method Details

BitcoinSerialize() public method

public BitcoinSerialize ( ) : byte[]
return byte[]

BitcoinSerializeToStream() public method

Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().
public BitcoinSerializeToStream ( Stream stream ) : void
stream Stream
return void

Message() protected method

This exists for the Java serialization framework to use only.
protected Message ( ) : System
return System

Parse() protected abstract method

protected abstract Parse ( ) : void
return void