Method | Description | |
---|---|---|
Merge ( TextReader reader, ExtensionRegistry registry, IBuilder builder ) : void | ||
Merge ( TextReader reader, IBuilder builder ) : void | ||
Merge ( string text, ExtensionRegistry registry, IBuilder builder ) : void | ||
Merge ( string text, IBuilder builder ) : void | ||
Print ( IMessage message, |
Outputs a textual representation of the Protocol Message supplied into the parameter output.
|
|
Print ( Google.ProtocolBuffers.UnknownFieldSet fields, |
Outputs a textual representation of fields to output.
|
|
PrintToString ( IMessage message ) : string | ||
PrintToString ( Google.ProtocolBuffers.UnknownFieldSet fields ) : string |
Method | Description | |
---|---|---|
EscapeBytes ( ByteString input ) : String |
Escapes bytes in the format used in protocol buffer text format, which is the same as the format used for C string literals. All bytes that are not printable 7-bit ASCII characters are escaped, as well as backslash, single-quote, and double-quote characters. Characters for which no defined short-hand escape sequence is defined will be escaped using 3-digit octal sequences. The returned value is guaranteed to be entirely ASCII.
|
|
EscapeText ( string input ) : string |
Like EscapeBytes but escapes a text string. The string is first encoded as UTF-8, then each byte escaped individually. The returned value is guaranteed to be entirely ASCII.
|
|
IsHex ( char c ) : bool |
Tests a character to see if it's a hex digit.
|
|
IsOctal ( char c ) : bool |
Tests a character to see if it's an octal digit.
|
|
MergeField ( Google.ProtocolBuffers.TextTokenizer tokenizer, ExtensionRegistry extensionRegistry, IBuilder builder ) : void |
Parses a single field from the specified tokenizer and merges it into the builder.
|
|
ParseDigit ( char c ) : int |
Interprets a character as a digit (in any base up to 36) and returns the numeric value.
|
|
ParseDouble ( string text ) : double | ||
ParseFloat ( string text ) : float | ||
ParseInt32 ( string text ) : int | ||
ParseInt64 ( string text ) : long | ||
ParseInteger ( string text, bool isSigned, bool isLong ) : long |
Parses an integer in hex (leading 0x), decimal (no prefix) or octal (leading 0). Only a negative sign is permitted, and it must come before the radix indicator.
|
|
ParseUInt32 ( string text ) : uint | ||
ParseUInt64 ( string text ) : ulong | ||
Print ( IMessage message, |
||
PrintField ( FieldDescriptor field, object value, |
||
PrintFieldValue ( FieldDescriptor field, object value, |
||
PrintSingleField ( FieldDescriptor field, Object value, |
||
PrintUnknownFields ( Google.ProtocolBuffers.UnknownFieldSet unknownFields, |
||
UnescapeBytes ( string input ) : ByteString |
Performs string unescaping from C style (octal, hex, form feeds, tab etc) into a byte string.
|
|
UnescapeText ( string input ) : string |
Unescapes a text string as escaped using EscapeText(string). Two-digit hex escapes (starting with "\x" are also recognised.
|
public static Merge ( TextReader reader, ExtensionRegistry registry, IBuilder builder ) : void | ||
reader | TextReader | |
registry | ExtensionRegistry | |
builder | IBuilder | |
return | void |
public static Merge ( TextReader reader, IBuilder builder ) : void | ||
reader | TextReader | |
builder | IBuilder | |
return | void |
public static Merge ( string text, ExtensionRegistry registry, IBuilder builder ) : void | ||
text | string | |
registry | ExtensionRegistry | |
builder | IBuilder | |
return | void |
public static Merge ( string text, IBuilder builder ) : void | ||
text | string | |
builder | IBuilder | |
return | void |
public static Print ( IMessage message, |
||
message | IMessage | |
output | ||
return | void |
public static Print ( Google.ProtocolBuffers.UnknownFieldSet fields, |
||
fields | Google.ProtocolBuffers.UnknownFieldSet | |
output | ||
return | void |
public static PrintToString ( IMessage message ) : string | ||
message | IMessage | |
return | string |
public static PrintToString ( Google.ProtocolBuffers.UnknownFieldSet fields ) : string | ||
fields | Google.ProtocolBuffers.UnknownFieldSet | |
return | string |