MCPcopy Create free account
hub / github.com/F-Stack/f-stack / mem_limit

Function mem_limit

freebsd/contrib/zlib/test/infcover.c:176–181  ·  view source on GitHub ↗

set a limit on the total memory allocation, or 0 to remove the limit */

Source from the content-addressed store, hash-verified

174
175/* set a limit on the total memory allocation, or 0 to remove the limit */
176local void mem_limit(z_stream *strm, size_t limit)
177{
178 struct mem_zone *zone = strm->opaque;
179
180 zone->limit = limit;
181}
182
183/* show the current total requested allocations in bytes */
184local void mem_used(z_stream *strm, char *prefix)

Callers 2

infFunction · 0.85
cover_wrapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected