Is there an efficient byte buffer queue?

Nicholas Wilson iamthewilsonator at hotmail.com
Mon Oct 8 10:31:33 UTC 2018


On Monday, 8 October 2018 at 09:39:55 UTC, John Burton wrote:
> My use case is sending data to a socket.
>
> One part of my program generates blocks of bytes, and the 
> socket part tries to send them to the socket and then removes 
> from the queue the number that got sent.
>
> [...]

Try searching for "circular buffer". I'm sure 
http://code.dlang.org/packages/iopipe has them in some form but I 
can't find them with a cursory search.


More information about the Digitalmars-d-learn mailing list