vibe.d beta banner
get vibe.d
0.10.0

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

Function RingBuffer.read

Moves elements from the front of the ring buffer into a supplied buffer.

void read (
  scope T[] dst
);

The first dst.length elements will be moved from the ring buffer into dst. dst must not be larger than the number of elements contained in the ring buffer.

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.