peekString

Peeks a string from the stream and checks whether it is the same as the given key.

  1. nstring peekString(StreamReader reader, uint length)
  2. bool peekString(StreamReader reader, string key)
    @nogc
    bool
    peekString
    (
    StreamReader reader
    ,
    string key
    )

Parameters

reader StreamReader

The stream reader.

key string

The key to compare against.

Return Value

Type: bool

true if the upcoming characters in the stream match key, false otherwise.

Meta