Exemplo n.º 1
0
        /// <summary>
        /// Serialize the filter as a array of bytes using [varint(N) | data].
        /// </summary>
        /// <returns>A array of bytes with the serialized filter data.</returns>
        public byte[] ToBytes()
        {
            var n = new VarInt((ulong)N).ToBytes();

            return(n.Concat(this.Data));
        }