C# Class MemoryStream, Yoakke

显示文件 Open project: LanguageDev/Yoakke Class Usage Examples

Public Methods

Method Description
Consume ( int amount ) : int
Defer ( item ) : void
MemoryStream ( ReadOnlyMemory memory ) : System,

Initializes a new instance of the MemoryStream{T} class.

TryConsume ( &item ) : bool
TryLookAhead ( int offset, &item ) : bool
TryPeek ( &item ) : bool

Method Details

Consume() public method

public Consume ( int amount ) : int
amount int
return int

Defer() public method

public Defer ( item ) : void
return void

MemoryStream() public method

Initializes a new instance of the MemoryStream{T} class.
public MemoryStream ( ReadOnlyMemory memory ) : System,
memory ReadOnlyMemory The memory to read from.
return System,

TryConsume() public method

public TryConsume ( &item ) : bool
return bool

TryLookAhead() public method

public TryLookAhead ( int offset, &item ) : bool
offset int
return bool

TryPeek() public method

public TryPeek ( &item ) : bool
return bool