vibe.d beta banner
get vibe.d

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

Function RingBuffer.peek

Returns a slice of the first elements in the buffer.

inout inout(T)[] peek();

Note that not all elements will generally be part of the returned slice, because inserting elements will wrap around to the start of the internal buffer once the end is reached.


Sönke Ludwig


© 2013-2024 Sönke Ludwig


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