public int ReadFromPayload(byte[] data, int offset = 0) { var roffset = offset; Txns = data.ReadFromBuffer <BlockTransactions>(ref roffset); return(Size); }
public ReadOnlySpan <byte> ReadFromPayload(ReadOnlySpan <byte> data) { var next = data.ReadAndSlice(out BlockTransactions tTxns); Txns = tTxns; return(next); }