public bool canPeek(size_t p) const nothrow pure @safe

Returns

true if it is possible to peek p bytes ahead.