A general message parser, typically used by reflection-based code as all the methods return simple IMessage.
Public functions |
|
---|---|
ParseDelimitedFrom(Stream input)
|
Parses a length-delimited message from the given stream.
|
ParseFrom(byte[] data)
|
Parses a message from a byte array.
|
ParseFrom(ByteString data)
|
Parses a message from the given byte string.
|
ParseFrom(Stream input)
|
Parses a message from the given stream.
|
ParseFrom(CodedInputStream input)
|
Parses a message from the given coded input stream.
|
ParseJson(string json)
|
Parses a message from the given JSON.
|
IMessage ParseDelimitedFrom( Stream input )
Parses a length-delimited message from the given stream.
The stream is expected to contain a length and then the data. Only the amount of data specified by the length will be consumed.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The parsed message.
|
IMessage ParseFrom( byte[] data )
Parses a message from a byte array.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The newly parsed message.
|
IMessage ParseFrom( ByteString data )
Parses a message from the given byte string.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The parsed message.
|
IMessage ParseFrom( Stream input )
Parses a message from the given stream.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The parsed message.
|
IMessage ParseFrom( CodedInputStream input )
Parses a message from the given coded input stream.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
The parsed message.
|
IMessage ParseJson( string json )
Parses a message from the given JSON.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Exceptions |
|
||||
Returns |
The parsed message.
|