private void MessageOptions(uint totalLength, MessageOptions 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 message_set_wire_format
{
uint value;
var ixl = GetVarint(out value);
ix += ixl;
totalLength -= (uint)ixl;
options.MessageSetWireFormat = value != 0;
Write(string.Format("Type = {0}, F#= {1}, Length = {2}, message_set_wire_format = {3}", type, no, ixl, value));
break;
}
case 2: // bool no_standard_descriptor_accessor
{
uint value;
var ixl = GetVarint(out value);
ix += ixl;
totalLength -= (uint)ixl;
options.NoStandardDescriptorAccessor = value != 0;
Write(string.Format("Type = {0}, F#= {1}, Length = {2}, no_standard_descriptor_accessor = {3}", type, no, ixl, value));
break;
}
case 3: // 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--;
}