C# Class Thrift.Protocol.TJSONProtocol.LookaheadReader

Holds up to one byte from the transport
Show file Open project: abhinavkulkarni/topic-modeling Class Usage Examples

Protected Properties

Property Type Description
proto TJSONProtocol

Public Methods

Method Description
LookaheadReader ( TJSONProtocol proto ) : System
Peek ( ) : byte

Return the next byte to be Read without consuming, filling the data buffer if it has not been filled alReady.

Read ( ) : byte

Return and consume the next byte to be Read, either taking it from the data buffer if present or getting it from the transport otherwise.

Method Details

LookaheadReader() public method

public LookaheadReader ( TJSONProtocol proto ) : System
proto TJSONProtocol
return System

Peek() public method

Return the next byte to be Read without consuming, filling the data buffer if it has not been filled alReady.
public Peek ( ) : byte
return byte

Read() public method

Return and consume the next byte to be Read, either taking it from the data buffer if present or getting it from the transport otherwise.
public Read ( ) : byte
return byte

Property Details

proto protected property

protected TJSONProtocol,Thrift.Protocol proto
return TJSONProtocol