Example #1
0
        public void Read(NDRParser parser)
        {
            parser.BeginStructure(); // SHARE_INFO Union
            Level = parser.ReadUInt32();
            switch (Level)
            {
            case 100:
                ShareInfo0Entry info0 = null;
                parser.ReadEmbeddedStructureFullPointer <ShareInfo0Entry>(ref info0);
                Info = info0;
                break;

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

            default:
                throw new NotImplementedException();
            }
            parser.EndStructure(); // SHARE_INFO Union
        }
Example #2
0
 public ShareInfo(IShareInfoEntry info)
 {
     Level = info.Level;
     Info  = info;
 }