std.mem
std.mem: memory. `Allocator` and the error set `AllocError` are built into the compiler:
Allocator.create(value) AllocError!*mut T
Allocator.destroy(p: *T)
Allocator.alloc(value, n) AllocError![]mut T
Allocator.free(s: []T)
Allocator.resize(s: []T, n, fill: T) AllocError![]mut T
error AllocError { OutOfMemory }
eql
pub fn eql(a: []u8, b: []u8) bool
Do `a` and `b` have the same bytes?
copy
pub fn copy(dst: []mut u8, src: []u8)
Copy `src` to the start of `dst`; panics if `dst` is shorter. The two may overlap.
set
pub fn set(dst: []mut u8, b: u8)
Set every byte of `dst` to `b`.
indexOf
pub fn indexOf(s: []u8, b: u8) ?usize
The index of the first byte `b` in `s`.