示例#1
0
 public void ReadWrite(BitcoinStream stream)
 {
     if (stream.Serializing)
     {
         BitcoinInt.StaticWrite(stream, this._wartosc);
     }
     else
     {
         this._wartosc = BitcoinInt.StaticRead(stream);
     }
 }
示例#2
0
        internal static void StaticWrite(BitcoinStream bs, byte[] bytes)
        {
            ulong length = bytes == null ? 0UL : (ulong)bytes.Length;

            BitcoinInt.StaticWrite(bs, length);
            if (bytes == null)
            {
                return;
            }
            bs.ReadWrite(ref bytes);
        }