Esempio n. 1
0
        public int ReadFromPayload(byte[] data, int offset = 0)
        {
            var roffset = offset;

            Txns = data.ReadFromBuffer <BlockTransactions>(ref roffset);

            return(Size);
        }
Esempio n. 2
0
        public ReadOnlySpan <byte> ReadFromPayload(ReadOnlySpan <byte> data)
        {
            var next = data.ReadAndSlice(out BlockTransactions tTxns);

            Txns = tTxns;

            return(next);
        }