public void WriteTo(CodedOutputStream output) { if (this.Start != 0) { goto IL_4C; } goto IL_BE; uint arg_87_0; while (true) { IL_82: uint num; switch ((num = (arg_87_0 ^ 2558673973u)) % 7u) { case 0u: output.WriteInt32(this.End); arg_87_0 = (num * 1078497601u ^ 1175681491u); continue; case 1u: output.WriteRawTag(8); arg_87_0 = (num * 4244478541u ^ 2774833388u); continue; case 2u: goto IL_4C; case 3u: output.WriteInt32(this.Start); arg_87_0 = (num * 4044301929u ^ 1626924624u); continue; case 4u: goto IL_BE; case 5u: output.WriteRawTag(16); arg_87_0 = (num * 3296568415u ^ 3865425179u); continue; } break; } return; IL_4C: arg_87_0 = 3640988978u; goto IL_82; IL_BE: arg_87_0 = ((this.End == 0) ? 4091317099u : 2946072095u); goto IL_82; }
public void WriteTo(CodedOutputStream output) { this.path_.WriteTo(output, SourceCodeInfo.Types.Location._repeated_path_codec); while (true) { IL_128: uint arg_F7_0 = 4016646306u; while (true) { uint num; switch ((num = (arg_F7_0 ^ 2834536074u)) % 9u) { case 0u: output.WriteString(this.LeadingComments); arg_F7_0 = (num * 2728556441u ^ 4094913141u); continue; case 2u: arg_F7_0 = (((SourceCodeInfo.Types.Location.smethod_2(this.LeadingComments) != 0) ? 3435165636u : 4179773490u) ^ num * 435143793u); continue; case 3u: output.WriteString(this.TrailingComments); arg_F7_0 = (num * 3459587754u ^ 780050995u); continue; case 4u: output.WriteRawTag(26); arg_F7_0 = (num * 851861346u ^ 1153944790u); continue; case 5u: this.span_.WriteTo(output, SourceCodeInfo.Types.Location._repeated_span_codec); arg_F7_0 = (num * 2092002766u ^ 2793290631u); continue; case 6u: goto IL_128; case 7u: output.WriteRawTag(34); arg_F7_0 = (num * 1109870101u ^ 632310986u); continue; case 8u: arg_F7_0 = ((SourceCodeInfo.Types.Location.smethod_2(this.TrailingComments) != 0) ? 4208085521u : 3982652469u); continue; } return; } } }
public void WriteTo(CodedOutputStream output) { if (UninterpretedOption.Types.NamePart.smethod_1(this.NamePart_) != 0) { goto IL_65; } goto IL_9B; uint arg_6F_0; while (true) { IL_6A: uint num; switch ((num = (arg_6F_0 ^ 2196724152u)) % 5u) { case 0u: goto IL_65; case 1u: goto IL_9B; case 2u: output.WriteRawTag(10); output.WriteString(this.NamePart_); arg_6F_0 = (num * 3710217040u ^ 1616946663u); continue; case 4u: output.WriteRawTag(16); output.WriteBool(this.IsExtension); arg_6F_0 = (num * 4058525509u ^ 2603311045u); continue; } break; } return; IL_65: arg_6F_0 = 2475431821u; goto IL_6A; IL_9B: arg_6F_0 = ((!this.IsExtension) ? 4134694002u : 2434990451u); goto IL_6A; }
public void WriteTo(pb.CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (ClientId.Length != 0) { output.WriteRawTag(10); output.WriteString(ClientId); } if (MessageId.Length != 0) { output.WriteRawTag(18); output.WriteString(MessageId); } if (Type != MessageType.Undefined) { output.WriteRawTag(24); output.WriteEnum((int)Type); } if (time_ != null) { output.WriteRawTag(34); output.WriteMessage(Time); } if (Status != MessageStatus.Undefined) { output.WriteRawTag(40); output.WriteEnum((int)Status); } if (Payload.Length != 0) { output.WriteRawTag(50); output.WriteBytes(Payload); } if (Response != ResponseType.Undefined) { output.WriteRawTag(56); output.WriteEnum((int)Response); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif }
/// <summary> /// Writes the binary representation to the specified <see cref="CodedOutputStream"/>. /// </summary> /// <param name="stream"> /// The <see cref="CodedOutputStream"/> to write to. /// </param> /// <remarks> /// The binary representation is a 1-byte <see cref="HashingAlgorithm.Code"/>, /// 1-byte <see cref="HashingAlgorithm.DigestSize"/> followed by the <see cref="Digest"/>. /// </remarks> public void Write(CodedOutputStream stream) { if (stream == null) throw new ArgumentNullException("stream"); stream.WriteRawTag(Algorithm.Code); stream.WriteLength(Algorithm.DigestSize); stream.WriteSomeBytes(Digest); }