I have the following struct:
[StructLayout(LayoutKind.Sequential, Pack = 1)]
struct cAuthLogonChallenge
{
byte cmd;
byte error;
fixed byte name[4];
public cAuthLogonChallenge()
{
cmd = 0x04;
error = 0x00;
name = ???
}
}
name
is supposed to be a null-terminated ASCII string, and Visual Studio is rejecting all my ideas to interact with it. How do I set it?