Exemplo n.º 1
0
        public void Read(NDRParser parser)
        {
            parser.BeginStructure(); // SERVER_INFO Union
            Level = parser.ReadUInt32();
            switch (Level)
            {
            case 100:
                ServerInfo100 info100 = null;
                parser.ReadEmbeddedStructureFullPointer <ServerInfo100>(ref info100);
                Info = info100;
                break;

            case 101:
                ServerInfo101 info101 = null;
                parser.ReadEmbeddedStructureFullPointer <ServerInfo101>(ref info101);
                Info = info101;
                break;

            default:
                throw new NotImplementedException();
            }
            ;
            parser.EndStructure(); // SERVER_INFO Union
        }
Exemplo n.º 2
0
 public ServerInfo(ServerInfoLevel info)
 {
     Level = info.Level;
     Info  = info;
 }