t { ubyte[] bytes = cast(ubyte[])xmalloc(12); xrealloc(bytes, 44); // same as `xrealloc(bytes.ptr, 44)` assert(bytes.length == 44); int[] ints = cast(int[])xcalloc(3, 4); assert(ints.length == 3); xrealloc(ints, 4); // same as `xrealloc(ints.ptr, 4 * 4)` assert(ints.length == 4)
Reallocates the given array using a new size.