Denis Koroskin Wrote: > On Thu, 14 Oct 2010 02:38:11 +0400, Sean Kelly <s...@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