JavaScript | PHP
Allocate the specified amount of memory at the specified alignment.
Usage
const std = @import("std"); var gpa = std.heap.DebugAllocator(.{}).init; pub const allocator = gpa.allocator();
import { allocator } from './allocator-js-example-1.zig'; const dv = allocator.alloc(4); allocator.free(dv);
Arguments:
len
align
Return value:
DataView
There was an error while loading. Please reload this page.