vibe.d beta banner
get vibe.d

Asynchronous I/O that doesn’t get in your way, written in D

Function LimitedInputStream.peek

Returns a temporary reference to the data that is currently buffered, typically has the size leastSize() or 0 if dataAvailableForRead() returns false.

const(ubyte)[] peek ();

Note that any method invocation on the same stream invalidates the contents of the returned buffer.


Sönke Ludwig


© 2012 RejectedSoftware e.K.


Subject to the terms of the MIT license, as written in the included LICENSE.txt file.