public void ReadWrite(BitcoinStream stream) { if (stream.Serializing) { BitcoinInt.StaticWrite(stream, this._wartosc); } else { this._wartosc = BitcoinInt.StaticRead(stream); } }
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); }