BCNet.BlockHeader.Load C# (CSharp) Method

Load() public method

public Load ( BinaryReader br ) : void
br System.IO.BinaryReader
return void
        public void Load(BinaryReader br)
        {
            mHash = br.ReadBytes(32);
            mVersion = br.ReadUInt32();
            mPrevBlock = br.ReadBytes(32);
            mMerkleRoot = br.ReadBytes(32);
            mTimestamp = br.ReadUInt32();
            mDifficultyBits = br.ReadUInt32();
            mNOnce = br.ReadUInt32();
        }

Usage Example

Example #1
0
        public void Load(BinaryReader br)
        {
            mHeader = new BlockHeader();
            mHeader.Load(br);

            int transactionCount = br.ReadInt32();
            for (int i = 0; i < transactionCount; i++)
            {
                Transaction t = new Transaction();
                t.Load(br);
                mTransactions.Add(t);
            }
        }
All Usage Examples Of BCNet.BlockHeader::Load