operator
true if the stream is opened as a buffer, and false otherwise. Replacing is with isnt will reverse the results. stream-name indexer? (is | isnt) buffer
You can use is buffer to test a stream variable to determine if it was opened as a buffer.