diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-02-03 19:55:09 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-02-06 14:23:23 -0800 |
| commit | 7eeef5fb2b9dc78679f4091e2a8173d07968b3e5 (patch) | |
| tree | a5edee99fe9ea1e5c241ec0e7b21268d65a8ff8b /lib/std/testing.zig | |
| parent | dd2fa4f75d3d2b1214fde22081f0b88850d1b55d (diff) | |
| download | zig-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
