C# Class BitSharp.Core.DataEncoder

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

Méthodes publiques

Méthode Description
EncodeBlock ( BitSharp.Core.Domain.Block block ) : byte[]
EncodeBlock ( BinaryWriter writer, BitSharp.Core.Domain.Block block ) : void
EncodeBlockHeader ( BlockHeader blockHeader ) : byte[]
EncodeBlockHeader ( UInt32 Version, UInt256 PreviousBlock, UInt256 MerkleRoot, DateTimeOffset Time, UInt32 Bits, UInt32 Nonce ) : byte[]
EncodeBlockHeader ( BinaryWriter writer, BlockHeader blockHeader ) : void
EncodeBlockSpentTxes ( BlockSpentTxes blockSpentTxes ) : byte[]
EncodeBlockSpentTxes ( BinaryWriter writer, BlockSpentTxes blockSpentTxes ) : void
EncodeBlockTxNode ( BlockTxNode blockTx ) : byte[]
EncodeBlockTxNode ( BinaryWriter writer, BlockTxNode blockTx ) : void
EncodeChainedHeader ( ChainedHeader chainedHeader ) : byte[]
EncodeChainedHeader ( BinaryWriter writer, ChainedHeader chainedHeader ) : void
EncodeOutputStates ( OutputStates outputStates ) : byte[]
EncodePrevTxOutput ( PrevTxOutput txOutput ) : byte[]
EncodePrevTxOutput ( BinaryWriter writer, PrevTxOutput txOutput ) : void
EncodePrevTxOutputList ( ImmutableArray txOutputs ) : byte[]
EncodePrevTxOutputList ( BinaryWriter writer, ImmutableArray txOutputs ) : void
EncodeSpentTx ( SpentTx spentTx ) : byte[]
EncodeSpentTx ( BinaryWriter writer, SpentTx spentTx ) : void
EncodeTotalWork ( System.Numerics.BigInteger totalWork ) : byte[]
EncodeTotalWork ( BinaryWriter writer, System.Numerics.BigInteger totalWork ) : void
EncodeTransaction ( BitSharp.Core.Domain.Transaction tx ) : DecodedTx
EncodeTransaction ( UInt32 Version, ImmutableArray Inputs, ImmutableArray Outputs, UInt32 LockTime ) : DecodedTx
EncodeTransaction ( BinaryWriter writer, BitSharp.Core.Domain.Transaction tx ) : void
EncodeTxInput ( BitSharp.Core.Domain.TxInput txInput ) : byte[]
EncodeTxInput ( BinaryWriter writer, BitSharp.Core.Domain.TxInput txInput ) : void
EncodeTxLookupKey ( TxLookupKey txLookupKey ) : byte[]
EncodeTxLookupKey ( BinaryWriter writer, TxLookupKey txLookupKey ) : void
EncodeTxOutput ( TxOutput txOutput ) : byte[]
EncodeTxOutput ( BinaryWriter writer, TxOutput txOutput ) : void
EncodeTxOutputKey ( BitSharp.Core.Domain.TxOutputKey txOutputKey ) : byte[]
EncodeTxOutputKey ( BinaryWriter writer, BitSharp.Core.Domain.TxOutputKey txOutputKey ) : void
EncodeTxOutputList ( ImmutableArray txOutputs ) : byte[]
EncodeTxOutputList ( BinaryWriter writer, ImmutableArray txOutputs ) : void
EncodeUInt256 ( BinaryWriter writer, UInt256 value ) : void
EncodeUnmintedTx ( UnmintedTx unmintedTx ) : byte[]
EncodeUnmintedTx ( BinaryWriter writer, UnmintedTx unmintedTx ) : void
EncodeUnmintedTxList ( IImmutableList unmintedTxes ) : byte[]
EncodeUnmintedTxList ( BinaryWriter writer, IImmutableList unmintedTxes ) : void
EncodeUnspentTx ( UnspentTx unspentTx ) : byte[]
EncodeUnspentTx ( BinaryWriter writer, UnspentTx unspentTx ) : void
EncodeVarString ( string s ) : byte[]
EncodeVarString ( BinaryWriter writer, string s ) : void
VarIntSize ( System.UInt64 value ) : int

Method Details

EncodeBlock() public static méthode

public static EncodeBlock ( BitSharp.Core.Domain.Block block ) : byte[]
block BitSharp.Core.Domain.Block
Résultat byte[]

EncodeBlock() public static méthode

public static EncodeBlock ( BinaryWriter writer, BitSharp.Core.Domain.Block block ) : void
writer System.IO.BinaryWriter
block BitSharp.Core.Domain.Block
Résultat void

EncodeBlockHeader() public static méthode

public static EncodeBlockHeader ( BlockHeader blockHeader ) : byte[]
blockHeader BitSharp.Core.Domain.BlockHeader
Résultat byte[]

EncodeBlockHeader() public static méthode

public static EncodeBlockHeader ( UInt32 Version, UInt256 PreviousBlock, UInt256 MerkleRoot, DateTimeOffset Time, UInt32 Bits, UInt32 Nonce ) : byte[]
Version System.UInt32
PreviousBlock UInt256
MerkleRoot UInt256
Time DateTimeOffset
Bits System.UInt32
Nonce System.UInt32
Résultat byte[]

EncodeBlockHeader() public static méthode

public static EncodeBlockHeader ( BinaryWriter writer, BlockHeader blockHeader ) : void
writer System.IO.BinaryWriter
blockHeader BitSharp.Core.Domain.BlockHeader
Résultat void

EncodeBlockSpentTxes() public static méthode

public static EncodeBlockSpentTxes ( BlockSpentTxes blockSpentTxes ) : byte[]
blockSpentTxes BlockSpentTxes
Résultat byte[]

EncodeBlockSpentTxes() public static méthode

public static EncodeBlockSpentTxes ( BinaryWriter writer, BlockSpentTxes blockSpentTxes ) : void
writer System.IO.BinaryWriter
blockSpentTxes BlockSpentTxes
Résultat void

EncodeBlockTxNode() public static méthode

public static EncodeBlockTxNode ( BlockTxNode blockTx ) : byte[]
blockTx BlockTxNode
Résultat byte[]

EncodeBlockTxNode() public static méthode

public static EncodeBlockTxNode ( BinaryWriter writer, BlockTxNode blockTx ) : void
writer System.IO.BinaryWriter
blockTx BlockTxNode
Résultat void

EncodeChainedHeader() public static méthode

public static EncodeChainedHeader ( ChainedHeader chainedHeader ) : byte[]
chainedHeader BitSharp.Core.Domain.ChainedHeader
Résultat byte[]

EncodeChainedHeader() public static méthode

public static EncodeChainedHeader ( BinaryWriter writer, ChainedHeader chainedHeader ) : void
writer System.IO.BinaryWriter
chainedHeader BitSharp.Core.Domain.ChainedHeader
Résultat void

EncodeOutputStates() public static méthode

public static EncodeOutputStates ( OutputStates outputStates ) : byte[]
outputStates OutputStates
Résultat byte[]

EncodePrevTxOutput() public static méthode

public static EncodePrevTxOutput ( PrevTxOutput txOutput ) : byte[]
txOutput BitSharp.Core.Domain.PrevTxOutput
Résultat byte[]

EncodePrevTxOutput() public static méthode

public static EncodePrevTxOutput ( BinaryWriter writer, PrevTxOutput txOutput ) : void
writer System.IO.BinaryWriter
txOutput BitSharp.Core.Domain.PrevTxOutput
Résultat void

EncodePrevTxOutputList() public static méthode

public static EncodePrevTxOutputList ( ImmutableArray txOutputs ) : byte[]
txOutputs ImmutableArray
Résultat byte[]

EncodePrevTxOutputList() public static méthode

public static EncodePrevTxOutputList ( BinaryWriter writer, ImmutableArray txOutputs ) : void
writer System.IO.BinaryWriter
txOutputs ImmutableArray
Résultat void

EncodeSpentTx() public static méthode

public static EncodeSpentTx ( SpentTx spentTx ) : byte[]
spentTx BitSharp.Core.Domain.SpentTx
Résultat byte[]

EncodeSpentTx() public static méthode

public static EncodeSpentTx ( BinaryWriter writer, SpentTx spentTx ) : void
writer System.IO.BinaryWriter
spentTx BitSharp.Core.Domain.SpentTx
Résultat void

EncodeTotalWork() public static méthode

public static EncodeTotalWork ( System.Numerics.BigInteger totalWork ) : byte[]
totalWork System.Numerics.BigInteger
Résultat byte[]

EncodeTotalWork() public static méthode

public static EncodeTotalWork ( BinaryWriter writer, System.Numerics.BigInteger totalWork ) : void
writer System.IO.BinaryWriter
totalWork System.Numerics.BigInteger
Résultat void

EncodeTransaction() public static méthode

public static EncodeTransaction ( BitSharp.Core.Domain.Transaction tx ) : DecodedTx
tx BitSharp.Core.Domain.Transaction
Résultat BitSharp.Core.Domain.DecodedTx

EncodeTransaction() public static méthode

public static EncodeTransaction ( UInt32 Version, ImmutableArray Inputs, ImmutableArray Outputs, UInt32 LockTime ) : DecodedTx
Version System.UInt32
Inputs ImmutableArray
Outputs ImmutableArray
LockTime System.UInt32
Résultat BitSharp.Core.Domain.DecodedTx

EncodeTransaction() public static méthode

public static EncodeTransaction ( BinaryWriter writer, BitSharp.Core.Domain.Transaction tx ) : void
writer System.IO.BinaryWriter
tx BitSharp.Core.Domain.Transaction
Résultat void

EncodeTxInput() public static méthode

public static EncodeTxInput ( BitSharp.Core.Domain.TxInput txInput ) : byte[]
txInput BitSharp.Core.Domain.TxInput
Résultat byte[]

EncodeTxInput() public static méthode

public static EncodeTxInput ( BinaryWriter writer, BitSharp.Core.Domain.TxInput txInput ) : void
writer System.IO.BinaryWriter
txInput BitSharp.Core.Domain.TxInput
Résultat void

EncodeTxLookupKey() public static méthode

public static EncodeTxLookupKey ( TxLookupKey txLookupKey ) : byte[]
txLookupKey BitSharp.Core.Domain.TxLookupKey
Résultat byte[]

EncodeTxLookupKey() public static méthode

public static EncodeTxLookupKey ( BinaryWriter writer, TxLookupKey txLookupKey ) : void
writer System.IO.BinaryWriter
txLookupKey BitSharp.Core.Domain.TxLookupKey
Résultat void

EncodeTxOutput() public static méthode

public static EncodeTxOutput ( TxOutput txOutput ) : byte[]
txOutput BitSharp.Core.Domain.TxOutput
Résultat byte[]

EncodeTxOutput() public static méthode

public static EncodeTxOutput ( BinaryWriter writer, TxOutput txOutput ) : void
writer System.IO.BinaryWriter
txOutput BitSharp.Core.Domain.TxOutput
Résultat void

EncodeTxOutputKey() public static méthode

public static EncodeTxOutputKey ( BitSharp.Core.Domain.TxOutputKey txOutputKey ) : byte[]
txOutputKey BitSharp.Core.Domain.TxOutputKey
Résultat byte[]

EncodeTxOutputKey() public static méthode

public static EncodeTxOutputKey ( BinaryWriter writer, BitSharp.Core.Domain.TxOutputKey txOutputKey ) : void
writer System.IO.BinaryWriter
txOutputKey BitSharp.Core.Domain.TxOutputKey
Résultat void

EncodeTxOutputList() public static méthode

public static EncodeTxOutputList ( ImmutableArray txOutputs ) : byte[]
txOutputs ImmutableArray
Résultat byte[]

EncodeTxOutputList() public static méthode

public static EncodeTxOutputList ( BinaryWriter writer, ImmutableArray txOutputs ) : void
writer System.IO.BinaryWriter
txOutputs ImmutableArray
Résultat void

EncodeUInt256() public static méthode

public static EncodeUInt256 ( BinaryWriter writer, UInt256 value ) : void
writer System.IO.BinaryWriter
value UInt256
Résultat void

EncodeUnmintedTx() public static méthode

public static EncodeUnmintedTx ( UnmintedTx unmintedTx ) : byte[]
unmintedTx BitSharp.Core.Domain.UnmintedTx
Résultat byte[]

EncodeUnmintedTx() public static méthode

public static EncodeUnmintedTx ( BinaryWriter writer, UnmintedTx unmintedTx ) : void
writer System.IO.BinaryWriter
unmintedTx BitSharp.Core.Domain.UnmintedTx
Résultat void

EncodeUnmintedTxList() public static méthode

public static EncodeUnmintedTxList ( IImmutableList unmintedTxes ) : byte[]
unmintedTxes IImmutableList
Résultat byte[]

EncodeUnmintedTxList() public static méthode

public static EncodeUnmintedTxList ( BinaryWriter writer, IImmutableList unmintedTxes ) : void
writer System.IO.BinaryWriter
unmintedTxes IImmutableList
Résultat void

EncodeUnspentTx() public static méthode

public static EncodeUnspentTx ( UnspentTx unspentTx ) : byte[]
unspentTx BitSharp.Core.Domain.UnspentTx
Résultat byte[]

EncodeUnspentTx() public static méthode

public static EncodeUnspentTx ( BinaryWriter writer, UnspentTx unspentTx ) : void
writer System.IO.BinaryWriter
unspentTx BitSharp.Core.Domain.UnspentTx
Résultat void

EncodeVarString() public static méthode

public static EncodeVarString ( string s ) : byte[]
s string
Résultat byte[]

EncodeVarString() public static méthode

public static EncodeVarString ( BinaryWriter writer, string s ) : void
writer System.IO.BinaryWriter
s string
Résultat void

VarIntSize() public static méthode

public static VarIntSize ( System.UInt64 value ) : int
value System.UInt64
Résultat int