Raw memory
Source: std/raw.mw.
Memory primitives written in plain Marrow, no libc.
Functions
Section titled “Functions”raw_copy
Section titled “raw_copy”fn raw_copy(dest: *u8, src: *u8, count: i64)Copies count bytes from src to dest. The regions must not overlap.
raw_move
Section titled “raw_move”fn raw_move(dest: *u8, src: *u8, count: i64)Like raw_copy, but the regions may overlap.
raw_fill
Section titled “raw_fill”fn raw_fill(dest: *u8, value: u8, count: i64)raw_zero
Section titled “raw_zero”fn raw_zero(dest: *u8, count: i64)raw_compare
Section titled “raw_compare”fn raw_compare(a: *u8, b: *u8, count: i64) -> i32Returns a negative, zero or positive value like C’s memcmp.