memcpy
pub fn memcpy(dst *raw u8, src *raw u8, n int) *raw u8Purpose
Execute memcpy.
Parameters
dst*raw u8- destination (*raw u8)
src*raw u8- source (*raw u8)
nint- count, length, or limit (int)
Returns
*raw u8 — a value of this type
#core/memPure, zero-allocation memory primitives for freestanding environments.
memcpypub fn memcpy(dst *raw u8, src *raw u8, n int) *raw u8Execute memcpy.
dst *raw u8src *raw u8n int*raw u8 — a value of this type
memmovepub fn memmove(dst *raw u8, src *raw u8, n int) *raw u8Execute memmove.
dst *raw u8src *raw u8n int*raw u8 — a value of this type
memset_usizepub fn memset_usize(dst *raw u8, val u8, n usize) *raw u8Memset usize.
dst *raw u8val u8n usize*raw u8 — a value of this type
memsetpub fn memset(dst *raw u8, val u8, n int) *raw u8Execute memset.
dst *raw u8val u8n int*raw u8 — a value of this type
bitnot_u8pub fn bitnot_u8(v u8) u8Bitnot u8.
v u8u8 — a value of this type
bitnot_u16pub fn bitnot_u16(v u16) u16Bitnot u16.
v u16u16 — a value of this type
bitnot_u32pub fn bitnot_u32(v u32) u32Bitnot u32.
v u32u32 — a value of this type
bitnot_u64pub fn bitnot_u64(v u64) u64Bitnot u64.
v u64u64 — a value of this type
memcmppub fn memcmp(s1 *raw u8, s2 *raw u8, n int) intExecute memcmp.
s1 *raw u8s2 *raw u8n intint — a value of this type
strlenpub fn strlen(s *raw u8) usizeExecute strlen.
s *raw u8usize — a value of this type
strnlenpub fn strnlen(s *raw u8, max_len usize) usizeExecute strnlen.
s *raw u8max_len usizeusize — a value of this type
strcmppub fn strcmp(a *raw u8, b *raw u8) intExecute strcmp.
a *raw u8b *raw u8int — a value of this type
strncmppub fn strncmp(a *raw u8, b *raw u8, n usize) intExecute strncmp.
a *raw u8b *raw u8n usizeint — a value of this type
memchrpub fn memchr(buf *raw u8, val u8, n usize) *raw u8Execute memchr.
buf *raw u8val u8n usize*raw u8 — a value of this type
memrchrpub fn memrchr(buf *raw u8, val u8, n usize) *raw u8Execute memrchr.
buf *raw u8val u8n usize*raw u8 — a value of this type
memzero_explicitpub fn memzero_explicit(dst *raw u8, n usize)Memzero explicit.
dst *raw u8n usizeThis call does not return a value.
clz_u64pub fn clz_u64(v u64) u32Clz u64.
v u64u32 — a value of this type
ctz_u64pub fn ctz_u64(v u64) u32Ctz u64.
v u64u32 — a value of this type
popcnt_u64pub fn popcnt_u64(v u64) u32Popcnt u64.
v u64u32 — a value of this type
log2_floor_u64pub fn log2_floor_u64(v u64) u32Log2 floor u64.
v u64u32 — a value of this type
next_power_of_two_u64pub fn next_power_of_two_u64(v u64) u64Next power of two u64.
v u64u64 — a value of this type