Load() public method

public Load ( BinaryReader br ) : void
br System.IO.BinaryReader
return void
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);
            }
        }
Example #2
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);
            }
        }