C# Class Flood.Serialization.JSONSerializer.LookaheadReader

Holds up to one byte from the transport
ファイルを表示 Open project: FloodProject/flood

Protected Properties

Property Type Description
proto JSONSerializer

Public Methods

Method Description
LookaheadReader ( JSONSerializer 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 ( JSONSerializer proto ) : System
proto JSONSerializer
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_oe property

protected JSONSerializer,Flood.Serialization proto
return JSONSerializer