On Mon, Mar 16, 2020 at 01:09:08PM +, Adnan via Digitalmars-d-learn wrote:
[...]
> Would it be wasteful to cast the entire content into a const string?
Why would it be? It's just reinterpreting a pointer.
> Can a memory mapped file be read with a buffer?
That totally defeats the purpose of
On Monday, 16 March 2020 at 13:09:08 UTC, Adnan wrote:
On Sunday, 15 March 2020 at 00:37:35 UTC, H. S. Teoh wrote:
On Sat, Mar 14, 2020 at 10:37:37PM +, Adnan via
Digitalmars-d-learn wrote:
[...]
That's because a memory-mapped file appears directly in your
program's memory address space
On Monday, 16 March 2020 at 13:09:08 UTC, Adnan wrote:
On Sunday, 15 March 2020 at 00:37:35 UTC, H. S. Teoh wrote:
On Sat, Mar 14, 2020 at 10:37:37PM +, Adnan via
Digitalmars-d-learn wrote:
https://dlang.org/library/std/mmfile/mm_file.html doesn't
seem to
specify anything similar to lines()
On Sunday, 15 March 2020 at 00:37:35 UTC, H. S. Teoh wrote:
On Sat, Mar 14, 2020 at 10:37:37PM +, Adnan via
Digitalmars-d-learn wrote:
https://dlang.org/library/std/mmfile/mm_file.html doesn't seem
to
specify anything similar to lines() or byLine() or
byLineCopy() etc.
That's because a me
On Sat, Mar 14, 2020 at 10:37:37PM +, Adnan via Digitalmars-d-learn wrote:
> https://dlang.org/library/std/mmfile/mm_file.html doesn't seem to
> specify anything similar to lines() or byLine() or byLineCopy() etc.
That's because a memory-mapped file appears directly in your program's
memory ad
https://dlang.org/library/std/mmfile/mm_file.html doesn't seem to
specify anything similar to lines() or byLine() or byLineCopy()
etc.