C# Class Thrift.Protocol.TJSONProtocol

Inheritance: TProtocol
Exibir arquivo Open project: abhinavkulkarni/topic-modeling Class Usage Examples

Public Methods

Method Description
ReadByte ( ) : byte
WriteBinary ( byte bin ) : void
WriteByte ( byte b ) : void

Protected Methods

Method Description
ReadJSONSyntaxChar ( byte b ) : void

Read a byte that must match b[0]; otherwise an exception is thrown. Marked protected to avoid synthetic accessor in JSONListContext.Read and JSONPairContext.Read

Private Methods

Method Description
GetTypeIDForTypeName ( byte name ) : TType
WriteJSONBase64 ( byte b ) : void

Write out contents of byte array b as a JSON string with base-64 encoded data

WriteJSONString ( byte b ) : void

Write the bytes in array buf as a JSON characters, escaping as needed

Method Details

ReadByte() public method

public ReadByte ( ) : byte
return byte

ReadJSONSyntaxChar() protected method

Read a byte that must match b[0]; otherwise an exception is thrown. Marked protected to avoid synthetic accessor in JSONListContext.Read and JSONPairContext.Read
protected ReadJSONSyntaxChar ( byte b ) : void
b byte
return void

WriteBinary() public method

public WriteBinary ( byte bin ) : void
bin byte
return void

WriteByte() public method

public WriteByte ( byte b ) : void
b byte
return void