public byte[] Deserialize(ReadOnlySpan <byte> bytes)
        {
            if (bytes.Length != Size)
            {
                ThrowHelpers.ThrowArgumentException("Invalid length", nameof(bytes));
            }

            return(bytes.ToArray());
        }
        public byte[] Deserialize(byte[] bytes, int offset, int length)
        {
            if (length != Size)
            {
                ThrowHelpers.ThrowArgumentException("Invalid length", nameof(bytes));
            }

            return(bytes.AsSpan(offset, length).ToArray());
        }