C# 클래스 BitSharp.Core.DataEncoder

파일 보기 프로젝트 열기: pmlyon/BitSharp 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

EncodeBlock() 공개 정적인 메소드

public static EncodeBlock ( BitSharp.Core.Domain.Block block ) : byte[]
block BitSharp.Core.Domain.Block
리턴 byte[]

EncodeBlock() 공개 정적인 메소드

public static EncodeBlock ( BinaryWriter writer, BitSharp.Core.Domain.Block block ) : void
writer System.IO.BinaryWriter
block BitSharp.Core.Domain.Block
리턴 void

EncodeBlockHeader() 공개 정적인 메소드

public static EncodeBlockHeader ( BlockHeader blockHeader ) : byte[]
blockHeader BitSharp.Core.Domain.BlockHeader
리턴 byte[]

EncodeBlockHeader() 공개 정적인 메소드

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
리턴 byte[]

EncodeBlockHeader() 공개 정적인 메소드

public static EncodeBlockHeader ( BinaryWriter writer, BlockHeader blockHeader ) : void
writer System.IO.BinaryWriter
blockHeader BitSharp.Core.Domain.BlockHeader
리턴 void

EncodeBlockSpentTxes() 공개 정적인 메소드

public static EncodeBlockSpentTxes ( BlockSpentTxes blockSpentTxes ) : byte[]
blockSpentTxes BlockSpentTxes
리턴 byte[]

EncodeBlockSpentTxes() 공개 정적인 메소드

public static EncodeBlockSpentTxes ( BinaryWriter writer, BlockSpentTxes blockSpentTxes ) : void
writer System.IO.BinaryWriter
blockSpentTxes BlockSpentTxes
리턴 void

EncodeBlockTxNode() 공개 정적인 메소드

public static EncodeBlockTxNode ( BlockTxNode blockTx ) : byte[]
blockTx BlockTxNode
리턴 byte[]

EncodeBlockTxNode() 공개 정적인 메소드

public static EncodeBlockTxNode ( BinaryWriter writer, BlockTxNode blockTx ) : void
writer System.IO.BinaryWriter
blockTx BlockTxNode
리턴 void

EncodeChainedHeader() 공개 정적인 메소드

public static EncodeChainedHeader ( ChainedHeader chainedHeader ) : byte[]
chainedHeader BitSharp.Core.Domain.ChainedHeader
리턴 byte[]

EncodeChainedHeader() 공개 정적인 메소드

public static EncodeChainedHeader ( BinaryWriter writer, ChainedHeader chainedHeader ) : void
writer System.IO.BinaryWriter
chainedHeader BitSharp.Core.Domain.ChainedHeader
리턴 void

EncodeOutputStates() 공개 정적인 메소드

public static EncodeOutputStates ( OutputStates outputStates ) : byte[]
outputStates OutputStates
리턴 byte[]

EncodePrevTxOutput() 공개 정적인 메소드

public static EncodePrevTxOutput ( PrevTxOutput txOutput ) : byte[]
txOutput BitSharp.Core.Domain.PrevTxOutput
리턴 byte[]

EncodePrevTxOutput() 공개 정적인 메소드

public static EncodePrevTxOutput ( BinaryWriter writer, PrevTxOutput txOutput ) : void
writer System.IO.BinaryWriter
txOutput BitSharp.Core.Domain.PrevTxOutput
리턴 void

EncodePrevTxOutputList() 공개 정적인 메소드

public static EncodePrevTxOutputList ( ImmutableArray txOutputs ) : byte[]
txOutputs ImmutableArray
리턴 byte[]

EncodePrevTxOutputList() 공개 정적인 메소드

public static EncodePrevTxOutputList ( BinaryWriter writer, ImmutableArray txOutputs ) : void
writer System.IO.BinaryWriter
txOutputs ImmutableArray
리턴 void

EncodeSpentTx() 공개 정적인 메소드

public static EncodeSpentTx ( SpentTx spentTx ) : byte[]
spentTx BitSharp.Core.Domain.SpentTx
리턴 byte[]

EncodeSpentTx() 공개 정적인 메소드

public static EncodeSpentTx ( BinaryWriter writer, SpentTx spentTx ) : void
writer System.IO.BinaryWriter
spentTx BitSharp.Core.Domain.SpentTx
리턴 void

EncodeTotalWork() 공개 정적인 메소드

public static EncodeTotalWork ( System.Numerics.BigInteger totalWork ) : byte[]
totalWork System.Numerics.BigInteger
리턴 byte[]

EncodeTotalWork() 공개 정적인 메소드

public static EncodeTotalWork ( BinaryWriter writer, System.Numerics.BigInteger totalWork ) : void
writer System.IO.BinaryWriter
totalWork System.Numerics.BigInteger
리턴 void

EncodeTransaction() 공개 정적인 메소드

public static EncodeTransaction ( BitSharp.Core.Domain.Transaction tx ) : DecodedTx
tx BitSharp.Core.Domain.Transaction
리턴 BitSharp.Core.Domain.DecodedTx

EncodeTransaction() 공개 정적인 메소드

public static EncodeTransaction ( UInt32 Version, ImmutableArray Inputs, ImmutableArray Outputs, UInt32 LockTime ) : DecodedTx
Version System.UInt32
Inputs ImmutableArray
Outputs ImmutableArray
LockTime System.UInt32
리턴 BitSharp.Core.Domain.DecodedTx

EncodeTransaction() 공개 정적인 메소드

public static EncodeTransaction ( BinaryWriter writer, BitSharp.Core.Domain.Transaction tx ) : void
writer System.IO.BinaryWriter
tx BitSharp.Core.Domain.Transaction
리턴 void

EncodeTxInput() 공개 정적인 메소드

public static EncodeTxInput ( BitSharp.Core.Domain.TxInput txInput ) : byte[]
txInput BitSharp.Core.Domain.TxInput
리턴 byte[]

EncodeTxInput() 공개 정적인 메소드

public static EncodeTxInput ( BinaryWriter writer, BitSharp.Core.Domain.TxInput txInput ) : void
writer System.IO.BinaryWriter
txInput BitSharp.Core.Domain.TxInput
리턴 void

EncodeTxLookupKey() 공개 정적인 메소드

public static EncodeTxLookupKey ( TxLookupKey txLookupKey ) : byte[]
txLookupKey BitSharp.Core.Domain.TxLookupKey
리턴 byte[]

EncodeTxLookupKey() 공개 정적인 메소드

public static EncodeTxLookupKey ( BinaryWriter writer, TxLookupKey txLookupKey ) : void
writer System.IO.BinaryWriter
txLookupKey BitSharp.Core.Domain.TxLookupKey
리턴 void

EncodeTxOutput() 공개 정적인 메소드

public static EncodeTxOutput ( TxOutput txOutput ) : byte[]
txOutput BitSharp.Core.Domain.TxOutput
리턴 byte[]

EncodeTxOutput() 공개 정적인 메소드

public static EncodeTxOutput ( BinaryWriter writer, TxOutput txOutput ) : void
writer System.IO.BinaryWriter
txOutput BitSharp.Core.Domain.TxOutput
리턴 void

EncodeTxOutputKey() 공개 정적인 메소드

public static EncodeTxOutputKey ( BitSharp.Core.Domain.TxOutputKey txOutputKey ) : byte[]
txOutputKey BitSharp.Core.Domain.TxOutputKey
리턴 byte[]

EncodeTxOutputKey() 공개 정적인 메소드

public static EncodeTxOutputKey ( BinaryWriter writer, BitSharp.Core.Domain.TxOutputKey txOutputKey ) : void
writer System.IO.BinaryWriter
txOutputKey BitSharp.Core.Domain.TxOutputKey
리턴 void

EncodeTxOutputList() 공개 정적인 메소드

public static EncodeTxOutputList ( ImmutableArray txOutputs ) : byte[]
txOutputs ImmutableArray
리턴 byte[]

EncodeTxOutputList() 공개 정적인 메소드

public static EncodeTxOutputList ( BinaryWriter writer, ImmutableArray txOutputs ) : void
writer System.IO.BinaryWriter
txOutputs ImmutableArray
리턴 void

EncodeUInt256() 공개 정적인 메소드

public static EncodeUInt256 ( BinaryWriter writer, UInt256 value ) : void
writer System.IO.BinaryWriter
value UInt256
리턴 void

EncodeUnmintedTx() 공개 정적인 메소드

public static EncodeUnmintedTx ( UnmintedTx unmintedTx ) : byte[]
unmintedTx BitSharp.Core.Domain.UnmintedTx
리턴 byte[]

EncodeUnmintedTx() 공개 정적인 메소드

public static EncodeUnmintedTx ( BinaryWriter writer, UnmintedTx unmintedTx ) : void
writer System.IO.BinaryWriter
unmintedTx BitSharp.Core.Domain.UnmintedTx
리턴 void

EncodeUnmintedTxList() 공개 정적인 메소드

public static EncodeUnmintedTxList ( IImmutableList unmintedTxes ) : byte[]
unmintedTxes IImmutableList
리턴 byte[]

EncodeUnmintedTxList() 공개 정적인 메소드

public static EncodeUnmintedTxList ( BinaryWriter writer, IImmutableList unmintedTxes ) : void
writer System.IO.BinaryWriter
unmintedTxes IImmutableList
리턴 void

EncodeUnspentTx() 공개 정적인 메소드

public static EncodeUnspentTx ( UnspentTx unspentTx ) : byte[]
unspentTx BitSharp.Core.Domain.UnspentTx
리턴 byte[]

EncodeUnspentTx() 공개 정적인 메소드

public static EncodeUnspentTx ( BinaryWriter writer, UnspentTx unspentTx ) : void
writer System.IO.BinaryWriter
unspentTx BitSharp.Core.Domain.UnspentTx
리턴 void

EncodeVarString() 공개 정적인 메소드

public static EncodeVarString ( string s ) : byte[]
s string
리턴 byte[]

EncodeVarString() 공개 정적인 메소드

public static EncodeVarString ( BinaryWriter writer, string s ) : void
writer System.IO.BinaryWriter
s string
리턴 void

VarIntSize() 공개 정적인 메소드

public static VarIntSize ( System.UInt64 value ) : int
value System.UInt64
리턴 int