Skip to main content

Module memory

Module memory 

Source
Expand description

Checked host-memory operations and explicit cache policy.

Ordinary copies retain the platform’s bulk-copy implementation while using compiler-sized blocks for small dynamic lengths. Streaming copies are an explicit contract for destinations that the CPU will not consume soon, such as GPU upload storage. They never change copy correctness.

Functions§

copy
Copy one complete byte slice into another non-overlapping slice.
copy_streaming
Copy one complete byte slice using an explicit one-way streaming policy.
equal
Compare two byte slices with ordinary early-exit semantics.
equal_constant_time
Compare equal-length byte slices without content-dependent early exit.
zero_secure
Erase every byte through observable stores.