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
afff2c65
Commit
afff2c65
authored
Jun 18, 2011
by
csharptest
Committed by
rogerk
Jun 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed A few last methods taking CodedInputStream
parent
579bb3de
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
ServiceInterfaceGenerator.cs
src/ProtoGen/ServiceInterfaceGenerator.cs
+1
-1
UnitTestRpcInterop.cs
src/ProtocolBuffers.Test/TestProtos/UnitTestRpcInterop.cs
+1
-1
DynamicMessage.cs
src/ProtocolBuffers/DynamicMessage.cs
+2
-2
IRpcDispatch.cs
src/ProtocolBuffers/IRpcDispatch.cs
+1
-1
No files found.
src/ProtoGen/ServiceInterfaceGenerator.cs
View file @
afff2c65
...
@@ -274,7 +274,7 @@ namespace Google.ProtocolBuffers.ProtoGen
...
@@ -274,7 +274,7 @@ namespace Google.ProtocolBuffers.ProtoGen
writer
.
WriteLine
();
writer
.
WriteLine
();
writer
.
WriteLine
(
writer
.
WriteLine
(
"public pb::IMessageLite CallMethod(string methodName, pb::CodedInputStream input, pb::ExtensionRegistry registry) {{"
,
"public pb::IMessageLite CallMethod(string methodName, pb::
I
CodedInputStream input, pb::ExtensionRegistry registry) {{"
,
Descriptor
.
Name
);
Descriptor
.
Name
);
writer
.
Indent
();
writer
.
Indent
();
writer
.
WriteLine
(
"switch(methodName) {"
);
writer
.
WriteLine
(
"switch(methodName) {"
);
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestRpcInterop.cs
View file @
afff2c65
...
@@ -1305,7 +1305,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -1305,7 +1305,7 @@ namespace Google.ProtocolBuffers.TestProtos {
if
(
dispose
)
((
global
::
System
.
IDisposable
)
implementation
).
Dispose
();
if
(
dispose
)
((
global
::
System
.
IDisposable
)
implementation
).
Dispose
();
}
}
public
pb
::
IMessageLite
CallMethod
(
string
methodName
,
pb
::
CodedInputStream
input
,
pb
::
ExtensionRegistry
registry
)
{
public
pb
::
IMessageLite
CallMethod
(
string
methodName
,
pb
::
I
CodedInputStream
input
,
pb
::
ExtensionRegistry
registry
)
{
switch
(
methodName
)
{
switch
(
methodName
)
{
case
"Search"
:
return
implementation
.
CallMethod
(
methodName
,
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
SearchRequest
.
ParseFrom
(
input
,
registry
),
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
SearchResponse
.
CreateBuilder
());
case
"Search"
:
return
implementation
.
CallMethod
(
methodName
,
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
SearchRequest
.
ParseFrom
(
input
,
registry
),
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
SearchResponse
.
CreateBuilder
());
case
"RefineSearch"
:
return
implementation
.
CallMethod
(
methodName
,
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
RefineSearchRequest
.
ParseFrom
(
input
,
registry
),
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
SearchResponse
.
CreateBuilder
());
case
"RefineSearch"
:
return
implementation
.
CallMethod
(
methodName
,
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
RefineSearchRequest
.
ParseFrom
(
input
,
registry
),
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
SearchResponse
.
CreateBuilder
());
...
...
src/ProtocolBuffers/DynamicMessage.cs
View file @
afff2c65
...
@@ -77,7 +77,7 @@ namespace Google.ProtocolBuffers
...
@@ -77,7 +77,7 @@ namespace Google.ProtocolBuffers
/// <summary>
/// <summary>
/// Parses a message of the given type from the given stream.
/// Parses a message of the given type from the given stream.
/// </summary>
/// </summary>
public
static
DynamicMessage
ParseFrom
(
MessageDescriptor
type
,
CodedInputStream
input
)
public
static
DynamicMessage
ParseFrom
(
MessageDescriptor
type
,
I
CodedInputStream
input
)
{
{
Builder
builder
=
CreateBuilder
(
type
);
Builder
builder
=
CreateBuilder
(
type
);
Builder
dynamicBuilder
=
builder
.
MergeFrom
(
input
);
Builder
dynamicBuilder
=
builder
.
MergeFrom
(
input
);
...
@@ -91,7 +91,7 @@ namespace Google.ProtocolBuffers
...
@@ -91,7 +91,7 @@ namespace Google.ProtocolBuffers
/// <param name="input"></param>
/// <param name="input"></param>
/// <param name="extensionRegistry"></param>
/// <param name="extensionRegistry"></param>
/// <returns></returns>
/// <returns></returns>
public
static
DynamicMessage
ParseFrom
(
MessageDescriptor
type
,
CodedInputStream
input
,
public
static
DynamicMessage
ParseFrom
(
MessageDescriptor
type
,
I
CodedInputStream
input
,
ExtensionRegistry
extensionRegistry
)
ExtensionRegistry
extensionRegistry
)
{
{
Builder
builder
=
CreateBuilder
(
type
);
Builder
builder
=
CreateBuilder
(
type
);
...
...
src/ProtocolBuffers/IRpcDispatch.cs
View file @
afff2c65
...
@@ -43,7 +43,7 @@ namespace Google.ProtocolBuffers
...
@@ -43,7 +43,7 @@ namespace Google.ProtocolBuffers
/// </summary>
/// </summary>
public
interface
IRpcServerStub
public
interface
IRpcServerStub
{
{
IMessageLite
CallMethod
(
string
methodName
,
CodedInputStream
input
,
ExtensionRegistry
registry
);
IMessageLite
CallMethod
(
string
methodName
,
I
CodedInputStream
input
,
ExtensionRegistry
registry
);
}
}
public
interface
IRpcDispatch
public
interface
IRpcDispatch
...
...
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