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.putBackN

Adds elements to the back of the buffer without overwriting the buffer.

void putBackN (
  size_t n
);

This method is used in conjunction with peekDst for more efficient writing of multiple elements. peekDst is used to obtain a memory slice that can be directly written to, followed by calling popFrontN with the number of elements that were written to the slice.

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.