gamut v0.0.7 ask for what you want

wjoe invalid at example.com
Mon Aug 8 16:07:54 UTC 2022


On Friday, 29 July 2022 at 10:59:02 UTC, Guillaume Piolat wrote:
> Ask for what you want...

Since it's super easy to calculate the amount of memory required 
to hold the decompressed data... If  you'd add a buffer parameter 
(akin to std.stdio.File.rawRead/Write), a slice to allocated 
memory that holds the decompressed data, people could use their 
allocator of choice to allocate the buffer and your lib would not 
just be @nogc but @no_allocation.


More information about the Digitalmars-d-announce mailing list