C# Class BitSharp.Core.DataDecoder

Show file Open project: pmlyon/BitSharp

Public Methods

Method Description
DecodeBlock ( BinaryReader reader ) : BitSharp.Core.Domain.Block
DecodeBlock ( UInt256 blockHash, byte buffer, int offset ) : BitSharp.Core.Domain.Block
DecodeBlockHeader ( UInt256 blockHash, byte buffer, int offset ) : BlockHeader
DecodeBlockSpentTxes ( byte buffer, int offset ) : BlockSpentTxes
DecodeBlockTxNode ( byte buffer, bool skipTxBytes = false ) : BlockTxNode
DecodeChainedHeader ( byte buffer ) : ChainedHeader
DecodeEncodedTx ( UInt256 txHash, byte buffer, int offset ) : DecodedTx
DecodeFixedString ( byte buffer, int offset, int length = null ) : string
DecodeInt32 ( byte buffer, int &offset ) : int
DecodeInt64 ( byte buffer, int &offset ) : long
DecodeOutputStates ( byte buffer ) : OutputStates
DecodePrevTxOutput ( byte buffer, int offset ) : PrevTxOutput
DecodePrevTxOutputList ( byte buffer, int offset ) : ImmutableArray
DecodeSpentTx ( byte buffer, int offset ) : SpentTx
DecodeTotalWork ( byte buffer ) : System.Numerics.BigInteger
DecodeTransaction ( UInt256 txHash, byte buffer, int offset ) : BitSharp.Core.Domain.Transaction
DecodeTxInput ( byte buffer, int offset ) : BitSharp.Core.Domain.TxInput
DecodeTxInputList ( byte buffer, int offset ) : ImmutableArray
DecodeTxOutput ( byte buffer, int offset ) : TxOutput
DecodeTxOutputList ( byte buffer, int offset ) : ImmutableArray
DecodeUInt256 ( byte buffer, int &offset ) : UInt256
DecodeUInt32 ( byte buffer, int &offset ) : uint
DecodeUInt64 ( byte buffer, int &offset ) : ulong
DecodeUnmintedTx ( byte buffer, int offset ) : UnmintedTx
DecodeUnmintedTxList ( byte buffer, int offset ) : IImmutableList
DecodeUnspentTx ( byte buffer, int offset ) : UnspentTx
DecodeVarString ( byte buffer, int offset ) : string
ReadTransaction ( BinaryReader reader ) : byte[]

Private Methods

Method Description
DecodeBool ( byte buffer, int &offset ) : bool
SizeAtLeast ( byte &buffer, int minLength ) : void

Method Details

DecodeBlock() public static method

public static DecodeBlock ( BinaryReader reader ) : BitSharp.Core.Domain.Block
reader System.IO.BinaryReader
return BitSharp.Core.Domain.Block

DecodeBlock() public static method

public static DecodeBlock ( UInt256 blockHash, byte buffer, int offset ) : BitSharp.Core.Domain.Block
blockHash UInt256
buffer byte
offset int
return BitSharp.Core.Domain.Block

DecodeBlockHeader() public static method

public static DecodeBlockHeader ( UInt256 blockHash, byte buffer, int offset ) : BlockHeader
blockHash UInt256
buffer byte
offset int
return BitSharp.Core.Domain.BlockHeader

DecodeBlockSpentTxes() public static method

public static DecodeBlockSpentTxes ( byte buffer, int offset ) : BlockSpentTxes
buffer byte
offset int
return BlockSpentTxes

DecodeBlockTxNode() public static method

public static DecodeBlockTxNode ( byte buffer, bool skipTxBytes = false ) : BlockTxNode
buffer byte
skipTxBytes bool
return BlockTxNode

DecodeChainedHeader() public static method

public static DecodeChainedHeader ( byte buffer ) : ChainedHeader
buffer byte
return BitSharp.Core.Domain.ChainedHeader

DecodeEncodedTx() public static method

public static DecodeEncodedTx ( UInt256 txHash, byte buffer, int offset ) : DecodedTx
txHash UInt256
buffer byte
offset int
return BitSharp.Core.Domain.DecodedTx

DecodeFixedString() public static method

public static DecodeFixedString ( byte buffer, int offset, int length = null ) : string
buffer byte
offset int
length int
return string

DecodeInt32() public static method

public static DecodeInt32 ( byte buffer, int &offset ) : int
buffer byte
offset int
return int

DecodeInt64() public static method

public static DecodeInt64 ( byte buffer, int &offset ) : long
buffer byte
offset int
return long

DecodeOutputStates() public static method

public static DecodeOutputStates ( byte buffer ) : OutputStates
buffer byte
return OutputStates

DecodePrevTxOutput() public static method

public static DecodePrevTxOutput ( byte buffer, int offset ) : PrevTxOutput
buffer byte
offset int
return BitSharp.Core.Domain.PrevTxOutput

DecodePrevTxOutputList() public static method

public static DecodePrevTxOutputList ( byte buffer, int offset ) : ImmutableArray
buffer byte
offset int
return ImmutableArray

DecodeSpentTx() public static method

public static DecodeSpentTx ( byte buffer, int offset ) : SpentTx
buffer byte
offset int
return BitSharp.Core.Domain.SpentTx

DecodeTotalWork() public static method

public static DecodeTotalWork ( byte buffer ) : System.Numerics.BigInteger
buffer byte
return System.Numerics.BigInteger

DecodeTransaction() public static method

public static DecodeTransaction ( UInt256 txHash, byte buffer, int offset ) : BitSharp.Core.Domain.Transaction
txHash UInt256
buffer byte
offset int
return BitSharp.Core.Domain.Transaction

DecodeTxInput() public static method

public static DecodeTxInput ( byte buffer, int offset ) : BitSharp.Core.Domain.TxInput
buffer byte
offset int
return BitSharp.Core.Domain.TxInput

DecodeTxInputList() public static method

public static DecodeTxInputList ( byte buffer, int offset ) : ImmutableArray
buffer byte
offset int
return ImmutableArray

DecodeTxOutput() public static method

public static DecodeTxOutput ( byte buffer, int offset ) : TxOutput
buffer byte
offset int
return BitSharp.Core.Domain.TxOutput

DecodeTxOutputList() public static method

public static DecodeTxOutputList ( byte buffer, int offset ) : ImmutableArray
buffer byte
offset int
return ImmutableArray

DecodeUInt256() public static method

public static DecodeUInt256 ( byte buffer, int &offset ) : UInt256
buffer byte
offset int
return UInt256

DecodeUInt32() public static method

public static DecodeUInt32 ( byte buffer, int &offset ) : uint
buffer byte
offset int
return uint

DecodeUInt64() public static method

public static DecodeUInt64 ( byte buffer, int &offset ) : ulong
buffer byte
offset int
return ulong

DecodeUnmintedTx() public static method

public static DecodeUnmintedTx ( byte buffer, int offset ) : UnmintedTx
buffer byte
offset int
return BitSharp.Core.Domain.UnmintedTx

DecodeUnmintedTxList() public static method

public static DecodeUnmintedTxList ( byte buffer, int offset ) : IImmutableList
buffer byte
offset int
return IImmutableList

DecodeUnspentTx() public static method

public static DecodeUnspentTx ( byte buffer, int offset ) : UnspentTx
buffer byte
offset int
return BitSharp.Core.Domain.UnspentTx

DecodeVarString() public static method

public static DecodeVarString ( byte buffer, int offset ) : string
buffer byte
offset int
return string

ReadTransaction() public static method

public static ReadTransaction ( BinaryReader reader ) : byte[]
reader BinaryReader
return byte[]