Streaming library

Denis Koroskin 2korden at gmail.com
Wed Oct 13 20:01:38 PDT 2010


On Thu, 14 Oct 2010 06:53:57 +0400, Steven Schveighoffer  
<schveiguy at yahoo.com> wrote:

> Denis Koroskin Wrote:
>
>> On Thu, 14 Oct 2010 02:38:11 +0400, Sean Kelly <sean at invisibleduck.org>
>> wrote:
>>
>> > Denis Koroskin Wrote:
>> >>
>> >> I prefer ubyte[] because that helps GC (void arrays are scanned for
>> >> pointers).
>> >
>> > To be fair, the only thing that matters here is what the type is when
>> > the initial "new" occurs.  After that, I think bits are preserved for
>> > reallocations so if NO_SCAN is set then it will remain.
>>
>> It also matter when I dup it. Even if you preallocate void[] with  
>> NO_SCAN
>> dup'ing it will reset the flag.
>
> Why would you be duping the buffer for reading or writing?
>
> -Steve

I could imagine idup'ing once a read is complete.
Anyway, that was just a note.


More information about the Digitalmars-d mailing list