Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
9b3de692
Commit
9b3de692
authored
Aug 05, 2011
by
csharptest
Committed by
rogerk
Aug 05, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes from review f60f2676f7fa
parent
3aa06356
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
14 deletions
+9
-14
CodedInputStream.cs
src/ProtocolBuffers/CodedInputStream.cs
+9
-14
No files found.
src/ProtocolBuffers/CodedInputStream.cs
View file @
9b3de692
...
@@ -190,17 +190,9 @@ namespace Google.ProtocolBuffers
...
@@ -190,17 +190,9 @@ namespace Google.ProtocolBuffers
/// Attempt to read a field tag, returning false if we have reached the end
/// Attempt to read a field tag, returning false if we have reached the end
/// of the input data.
/// of the input data.
/// </summary>
/// </summary>
/// <remarks>
/// <param name="fieldTag">The 'tag' of the field (id * 8 + wire-format)</param>
/// <para>
/// <param name="fieldName">Not Supported - For protobuffer streams, this parameter is always null</param>
/// If fieldTag is non-zero and ReadTag returns true then the value in fieldName
/// <returns>true if the next fieldTag was read</returns>
/// may or may not be populated. However, if fieldTag is zero and ReadTag returns
/// true, then fieldName should be populated with a non-null field name.
/// </para><para>
/// In other words if ReadTag returns true then either fieldTag will be non-zero OR
/// fieldName will be non-zero. In some cases both may be populated, however the
/// builders will always prefer the fieldTag over fieldName.
/// </para>
/// </remarks>
[
CLSCompliant
(
false
)]
[
CLSCompliant
(
false
)]
public
bool
ReadTag
(
out
uint
fieldTag
,
out
string
fieldName
)
public
bool
ReadTag
(
out
uint
fieldTag
,
out
string
fieldName
)
{
{
...
@@ -208,18 +200,21 @@ namespace Google.ProtocolBuffers
...
@@ -208,18 +200,21 @@ namespace Google.ProtocolBuffers
if
(
hasNextTag
)
if
(
hasNextTag
)
{
{
lastTag
=
fieldTag
=
nextTag
;
fieldTag
=
nextTag
;
lastTag
=
fieldTag
;
hasNextTag
=
false
;
hasNextTag
=
false
;
return
true
;
return
true
;
}
}
if
(
IsAtEnd
)
if
(
IsAtEnd
)
{
{
lastTag
=
fieldTag
=
0
;
fieldTag
=
0
;
lastTag
=
fieldTag
;
return
false
;
return
false
;
}
}
lastTag
=
fieldTag
=
ReadRawVarint32
();
fieldTag
=
ReadRawVarint32
();
lastTag
=
fieldTag
;
if
(
lastTag
==
0
)
if
(
lastTag
==
0
)
{
{
// If we actually read zero, that's not a valid tag.
// If we actually read zero, that's not a valid tag.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment