vibe.d beta banner
get vibe.d
0.10.1

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.

Authors

Sönke Ludwig

Copyright

© 2013-2024 Sönke Ludwig

License

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