Class TSimplePeekCharStream
Unit
Declaration
type TSimplePeekCharStream = class(TPeekCharStream)
Description
Read another stream, sequentially, always being able to back one character. This is a simplest non-abstract implementation of the TPeekCharStream class.
Hierarchy
- TObject
- TStream
- TPeekCharStream
- TSimplePeekCharStream
Overview
Methods
function GetPosition: Int64; override; |
|
function Read(var Buffer; Count: Longint): Longint; override; |
|
function PeekChar: Integer; override; |
|
function ReadChar: Integer; override; |
Description
Methods
function GetPosition: Int64; override; |
|
This item has no description. |
function Read(var Buffer; Count: Longint): Longint; override; |
|
This item has no description. |
function PeekChar: Integer; override; |
|
This item has no description. Showing description inherited from TPeekCharStream.PeekChar.
Peek next character. Returns the next character without making it "already read", so the next call to Read or ReadBuffer will return this char. Subsequent calls to Returns -1 if stream ended, otherwise returns Ord or given char. This may call SourceStream.Read, and any exceptions that may be raised in SourceStream.Read are propagated higher from this method. |
function ReadChar: Integer; override; |
|
This item has no description. Showing description inherited from TPeekCharStream.ReadChar. Read next character. A shortcut for Read(c, 1), but it returns -1 if end of stream is reached. So it's consistent with PeekChar. Sometimes it's also more comfortable, and it's a little faster. |
Generated by PasDoc 0.16.0-snapshot.