Using lazy code to process large files

ag0aep6g via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Aug 2 11:51:44 PDT 2017


On 08/02/2017 08:28 PM, kdevel wrote:
> It's perfectly okay to put any value a octet can take into an octet. I 
> did not claim that the data in the string memory is syntactically valid 
> UTF-8. Read the comment in line 9 of my post of 15:02:22.

You're claiming that the data is in UTF-8 when you use `string` as the 
type. For arbitrary octets, use something like `ubyte[]`.


More information about the Digitalmars-d-learn mailing list