aboutsummaryrefslogtreecommitdiff
path: root/lib/std/testing.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-02-03 19:55:09 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-02-06 14:23:23 -0800
commit7eeef5fb2b9dc78679f4091e2a8173d07968b3e5 (patch)
treea5edee99fe9ea1e5c241ec0e7b21268d65a8ff8b /lib/std/testing.zig
parentdd2fa4f75d3d2b1214fde22081f0b88850d1b55d (diff)
downloadzig-7eeef5fb2b9dc78679f4091e2a8173d07968b3e5.tar.gz
zig-7eeef5fb2b9dc78679f4091e2a8173d07968b3e5.zip
std.mem.Allocator: introduce `remap` function to the interface
This one changes the size of an allocation, allowing it to be relocated. However, the implementation will still return `null` if it would be equivalent to new = alloc memcpy(new, old) free(old) Mainly this prepares for taking advantage of `mremap` which I thought would be a bigger deal but apparently is only available on Linux. Still, we should use it on Linux.
Diffstat (limited to 'lib/std/testing.zig')
0 files changed, 0 insertions, 0 deletions