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
07542e78
Commit
07542e78
authored
Nov 09, 2017
by
Jan Tattermusch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check already performed by MergeFrom
parent
0c874a6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
MessageParser.cs
csharp/src/Google.Protobuf/MessageParser.cs
+0
-5
No files found.
csharp/src/Google.Protobuf/MessageParser.cs
View file @
07542e78
...
...
@@ -64,7 +64,6 @@ namespace Google.Protobuf
/// <returns>The newly parsed message.</returns>
public
IMessage
ParseFrom
(
byte
[]
data
)
{
ProtoPreconditions
.
CheckNotNull
(
data
,
"data"
);
IMessage
message
=
factory
();
message
.
MergeFrom
(
data
);
return
message
;
...
...
@@ -79,7 +78,6 @@ namespace Google.Protobuf
/// <returns>The newly parsed message.</returns>
public
IMessage
ParseFrom
(
byte
[]
data
,
int
offset
,
int
length
)
{
ProtoPreconditions
.
CheckNotNull
(
data
,
"data"
);
IMessage
message
=
factory
();
message
.
MergeFrom
(
data
,
offset
,
length
);
return
message
;
...
...
@@ -92,7 +90,6 @@ namespace Google.Protobuf
/// <returns>The parsed message.</returns>
public
IMessage
ParseFrom
(
ByteString
data
)
{
ProtoPreconditions
.
CheckNotNull
(
data
,
"data"
);
IMessage
message
=
factory
();
message
.
MergeFrom
(
data
);
return
message
;
...
...
@@ -206,7 +203,6 @@ namespace Google.Protobuf
/// <returns>The newly parsed message.</returns>
public
new
T
ParseFrom
(
byte
[]
data
)
{
ProtoPreconditions
.
CheckNotNull
(
data
,
"data"
);
T
message
=
factory
();
message
.
MergeFrom
(
data
);
return
message
;
...
...
@@ -219,7 +215,6 @@ namespace Google.Protobuf
/// <returns>The parsed message.</returns>
public
new
T
ParseFrom
(
ByteString
data
)
{
ProtoPreconditions
.
CheckNotNull
(
data
,
"data"
);
T
message
=
factory
();
message
.
MergeFrom
(
data
);
return
message
;
...
...
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