Directory recursive walking
Paul Backus
snarwin at gmail.com
Fri Jan 15 06:33:55 UTC 2021
On Friday, 15 January 2021 at 06:31:18 UTC, Paul Backus wrote:
>
> You can save a little bit of memory here by allocating
> tempBuffer on the stack:
>
> ubyte[512] tempBuffer;
> _inputFile.rawRead(tempBuffer[]); // note the explicit []
I made a mistake; this should be:
ubyte[512] tempArray;
ubyte[] tempBuffer = _inputFile.rawRead(tempArray[]);
...with the rest the same as your original version.
More information about the Digitalmars-d-learn
mailing list