コード例 #1
0
 public void ReadWrite(BitcoinStream stream)
 {
     using (stream.BigEndianScope())
     {
         stream.ReadWrite(ref nDepth);
         stream.ReadWrite(ref vchFingerprint);
         stream.ReadWrite(ref nChild);
         stream.ReadWrite(ref vchChainCode);
         stream.ReadWrite(ref pubkey);
     }
 }
コード例 #2
0
 public void ReadWrite(BitcoinStream stream)
 {
     using (stream.BigEndianScope())
     {
         stream.ReadWrite(ref this.nDepth);
         stream.ReadWrite(ref this.vchFingerprint);
         stream.ReadWrite(ref this.nChild);
         stream.ReadWrite(ref this.vchChainCode);
         byte b = 0;
         stream.ReadWrite(ref b);
         stream.ReadWrite(ref this.key);
     }
 }
コード例 #3
0
ファイル: ExtPubKey.cs プロジェクト: sotblad/NBitcoin
 public void ReadWrite(BitcoinStream stream)
 {
     using (stream.BigEndianScope())
     {
         stream.ReadWrite(ref nDepth);
         stream.ReadWrite(ref parentFingerprint);
         stream.ReadWrite(ref nChild);
         stream.ReadWrite(ref vchChainCode);
         if (pubkey is null)
         {
             var pubkeyBytes = new byte[33];
             stream.ReadWrite(ref pubkeyBytes);
             if (!stream.Serializing)
             {
                 pubkey = new PubKey(pubkeyBytes);
             }
         }
         else
         {
             stream.ReadWrite(ref pubkey);
         }
     }
 }