Provides access to a stream and allows to peek at the next characters, up to the buffer's capacity.
This class implements a circular buffer with a fixed capacity.
Namespace: YamlDotNet.Core
Assembly: YamlDotNet.Core (in YamlDotNet.Core.dll)
Assembly Versions: 0.2.3385.42326
See Also: Inherited members from object.
⊟ Public Constructors
Initializes a new instance of the YamlDotNet.Core.LookAheadBuffer class. ⊟ Public Properties
[read-only] EndOfInput bool . Gets a value indicating whether the end of the input reader has been reached. ⊟ Public Methods
Cache (int) Reads characters until at least length characters are in the buffer.Peek (int) : char Gets the character at thhe specified offset.Skip (int) Skips the next length characters. Those characters must have been obtained first by calling the LookAheadBuffer.Peek(int) or LookAheadBuffer.Cache(int) methods.
⊟ LookAheadBuffer Constructor
Initializes a new instance of the YamlDotNet.Core.LookAheadBuffer class.
public LookAheadBuffer (System.IO.TextReader input, int capacity)⊟ Parameters
- input
- The input.
- capacity
- The capacity.
⊟ Remarks
Documentation for this section has not yet been entered.⊟ Requirements
Namespace: YamlDotNet.Core
Assembly: YamlDotNet.Core (in YamlDotNet.Core.dll)
Assembly Versions: 0.2.3385.42326
⊟ Cache Method
Reads characters until at least length characters are in the buffer.
⊟ Parameters
- length
- Number of characters to cache.
⊟ Remarks
Documentation for this section has not yet been entered.⊟ Requirements
Namespace: YamlDotNet.Core
Assembly: YamlDotNet.Core (in YamlDotNet.Core.dll)
Assembly Versions: 0.2.3385.42326
⊟ EndOfInput Property
Gets a value indicating whether the end of the input reader has been reached.
public bool EndOfInput { get; }⊟ Value
Documentation for this section has not yet been entered.⊟ Remarks
Documentation for this section has not yet been entered.⊟ Requirements
Namespace: YamlDotNet.Core
Assembly: YamlDotNet.Core (in YamlDotNet.Core.dll)
Assembly Versions: 0.2.3385.42326
⊟ Peek Method
Gets the character at thhe specified offset.
⊟ Parameters
- offset
- Documentation for this section has not yet been entered.
⊟ Returns
Documentation for this section has not yet been entered.⊟ Remarks
Documentation for this section has not yet been entered.⊟ Requirements
Namespace: YamlDotNet.Core
Assembly: YamlDotNet.Core (in YamlDotNet.Core.dll)
Assembly Versions: 0.2.3385.42326
⊟ Skip Method
Skips the next length characters. Those characters must have been obtained first by calling the LookAheadBuffer.Peek(int) or LookAheadBuffer.Cache(int) methods.
⊟ Parameters
- length
- Documentation for this section has not yet been entered.
⊟ Remarks
Documentation for this section has not yet been entered.⊟ Requirements
Namespace: YamlDotNet.Core
Assembly: YamlDotNet.Core (in YamlDotNet.Core.dll)
Assembly Versions: 0.2.3385.42326