public void ToBytes(IBytesSink sink)
        {
            var ser = new BinarySerializer(sink);

            ser.AddLengthEncoded(Tx);
            ser.AddLengthEncoded(Meta);
        }
Exemplo n.º 2
0
        private IItem CreateItem(byte[] tx, byte[] meta)
        {
            var bl = new BytesList();
            var s  = new BinarySerializer(bl);

            s.AddLengthEncoded(tx);
            s.AddLengthEncoded(meta);
            var bytes = bl.Bytes();

            return(new ByteItem(bytes));
        }