Exemple #1
0
        internal static void StaticRead(BitcoinStream bs, ref byte[] bytes)
        {
            ulong length = BitcoinInt.StaticRead(bs);

            bytes = new byte[length];
            bs.ReadWrite(ref bytes);
        }
Exemple #2
0
 public void ReadWrite(BitcoinStream stream)
 {
     if (stream.Serializing)
     {
         BitcoinInt.StaticWrite(stream, this._wartosc);
     }
     else
     {
         this._wartosc = BitcoinInt.StaticRead(stream);
     }
 }