Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(800)

Side by Side Diff: third_party/protobuf/csharp/src/Google.Protobuf/CodedInputStream.cs

Issue 2495533002: third_party/protobuf: Update to HEAD (83d681ee2c) (Closed)
Patch Set: Make chrome settings proto generated file a component Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #region Copyright notice and license 1 #region Copyright notice and license
2 // Protocol Buffers - Google's data interchange format 2 // Protocol Buffers - Google's data interchange format
3 // Copyright 2008 Google Inc. All rights reserved. 3 // Copyright 2008 Google Inc. All rights reserved.
4 // https://developers.google.com/protocol-buffers/ 4 // https://developers.google.com/protocol-buffers/
5 // 5 //
6 // Redistribution and use in source and binary forms, with or without 6 // Redistribution and use in source and binary forms, with or without
7 // modification, are permitted provided that the following conditions are 7 // modification, are permitted provided that the following conditions are
8 // met: 8 // met:
9 // 9 //
10 // * Redistributions of source code must retain the above copyright 10 // * Redistributions of source code must retain the above copyright
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 605
606 /// <summary> 606 /// <summary>
607 /// Reads a uint32 field value from the stream. 607 /// Reads a uint32 field value from the stream.
608 /// </summary> 608 /// </summary>
609 public uint ReadUInt32() 609 public uint ReadUInt32()
610 { 610 {
611 return ReadRawVarint32(); 611 return ReadRawVarint32();
612 } 612 }
613 613
614 /// <summary> 614 /// <summary>
615 /// Reads an enum field value from the stream. If the enum is valid for type T, 615 /// Reads an enum field value from the stream.
616 /// then the ref value is set and it returns true. Otherwise the unknow n output
617 /// value is set and this method returns false.
618 /// </summary> 616 /// </summary>
619 public int ReadEnum() 617 public int ReadEnum()
620 { 618 {
621 // Currently just a pass-through, but it's nice to separate it logic ally from WriteInt32. 619 // Currently just a pass-through, but it's nice to separate it logic ally from WriteInt32.
622 return (int) ReadRawVarint32(); 620 return (int) ReadRawVarint32();
623 } 621 }
624 622
625 /// <summary> 623 /// <summary>
626 /// Reads an sfixed32 field value from the stream. 624 /// Reads an sfixed32 field value from the stream.
627 /// </summary> 625 /// </summary>
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
1268 throw InvalidProtocolBufferException.TruncatedMessage(); 1266 throw InvalidProtocolBufferException.TruncatedMessage();
1269 } 1267 }
1270 amountToSkip -= bytesRead; 1268 amountToSkip -= bytesRead;
1271 } 1269 }
1272 } 1270 }
1273 } 1271 }
1274 1272
1275 #endregion 1273 #endregion
1276 } 1274 }
1277 } 1275 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698