public struct QUIC_SETTINGS
{
[StructLayout(LayoutKind.Explicit)]
public struct _Anonymous1_e__Union
{
public struct _IsSet_e__Struct
{
[NativeBitfield("MaxBytesPerKey", 0L, 1L)]
[NativeBitfield("HandshakeIdleTimeoutMs", 1L, 1L)]
public ulong _bitfield;
}
[FieldOffset(0)]
public ulong IsSetFlags;
[FieldOffset(0)]
public _IsSet_e__Struct IsSet;
}
public _Anonymous1_e__Union Anonymous1;
public ulong MaxBytesPerKey;
public ulong HandshakeIdleTimeoutMs;
}
There is no NativeBitfield support in generated Rust:
given winmd:
There is no NativeBitfield support in generated Rust:
C code is like this that is used to generate winmd:
The intended use in c: