peekString

Takes a peek at the upcoming string contents of the given stream.

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

Parameters

reader StreamReader

The stream reader.

length uint

The length of the string.

Return Value

Type: nstring

The text read from the stream, length might be shorter than the requested length.

Meta