public override void BitcoinSerializeToStream(Stream stream)
{
stream.Write(new VarInt((ulong) _items.Count).Encode());
foreach (var i in _items)
{
// Write out the type code.
Utils.Uint32ToByteStreamLe((uint) i.Type, stream);
// And now the hash.
stream.Write(Utils.ReverseBytes(i.Hash.Bytes));
}
}