using System.Runtime.InteropServices;
using ProtonVPN.OperatingSystems.WebAuthn.Interop.Marshalers;
namespace ProtonVPN.OperatingSystems.WebAuthn.Interop.Structs;
///
/// Information about Extension.
///
/// Corresponds to WEBAUTHN_EXTENSION.
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public class ExtensionOut
{
///
/// Extension identifier.
///
public string Identifier { get; private set; }
private int _dataLength;
private ByteArrayOut _data;
///
/// Extension data.
///
public byte[] Data => _data?.Read(_dataLength);
private ExtensionOut() { }
}