AnalyzeRawProtobuf.Program.EnumValueOptions C# (CSharp) Method

EnumValueOptions() private method

The enum value options.
private EnumValueOptions ( uint totalLength, EnumValueOptions options ) : void
totalLength uint /// The total length. ///
options EnumValueOptions /// The options. ///
return void
        private void EnumValueOptions(uint totalLength, EnumValueOptions options)
        {
            intend++;

            while (totalLength != 0)
            {
                int type, no;
                var l = GetTypeAndFieldNo(out type, out no);
                ix += l;
                totalLength -= (uint)l;

                switch (no)
                {
                    case 1: // bool deprecated
                        {
                            uint value;
                            var ixl = GetVarint(out value);
                            ix += ixl;
                            totalLength -= (uint)ixl;
                            options.Deprecated = value != 0;
                            Write(string.Format("Type = {0}, F#= {1}, Length = {2}, Deprecated = {3}", type, no, ixl, value));
                            break;
                        }
                }
            }

            intend--;
        }