appendToFront semantics

Torarin torarind at gmail.com
Tue Feb 15 10:17:33 PST 2011


2011/2/15 Adam Ruppe <destructionator at gmail.com>:
> One problem with "at least" is it might have to wait for two
> packets to come off the network interface; could be fairly slow.
>
> The "at most" means it will take whatever is available without
> overflowing your buffer - it will never wait if there is any
> data available.
>

But isn't the reason you're supplying a value to appendToFront that
you do want a specific amount? If not, you can use appendToFront(0)
until you get what you want.

Torarin


More information about the Digitalmars-d mailing list