Using lazy code to process large files
    Steven Schveighoffer via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Wed Aug  2 06:45:01 PDT 2017
    
    
  
On 8/2/17 8:59 AM, Martin DraĊĦar via Digitalmars-d-learn wrote:
> Thanks Steven for the explanation. Just to clarify - what would be
> needed to avoid auto-decoding in this case? Process it all as an arrays,
> using byChunk to read it, etc?
> 
As Daniel said, using byCodeUnit will help.
I don't know what the result of this is when outputting, however. I'd be 
concerned it just integer promoted the data to dchars before outputting. 
If your file data is all ASCII it should work fine. You'd have to 
experiment to see how it works.
-Steve
    
    
More information about the Digitalmars-d-learn
mailing list