C# Class MemoryStream, Yoakke

Afficher le fichier Open project: LanguageDev/Yoakke Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public Consume ( int amount ) : int
amount int
Résultat int

Defer() public méthode

public Defer ( item ) : void
Résultat void

MemoryStream() public méthode

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

TryConsume() public méthode

public TryConsume ( &item ) : bool
Résultat bool

TryLookAhead() public méthode

public TryLookAhead ( int offset, &item ) : bool
offset int
Résultat bool

TryPeek() public méthode

public TryPeek ( &item ) : bool
Résultat bool