Expand description

unmem crate contains some interesting functions. I tried to make them as safe as possible. However, remember that even not marked as unsafe they still can be dangerous. All of these functions may cause UB!

Macros

Takes variable of one type and returns it as another type. EXTREMELY UNSAFE. Undefined Behavior or panic guaranteed.

Structs

Mean safe wrapper around raw pointers.

Traits

Functions

Internal of transmute macro.

Changes value of immutable variable.

Free memory by mutable reference.

Returns value from address.

Returns address from reference.

Gives you a mutable reference from immutable.

Get value in memory related to src.

Similar to orient but returns &mut.

Read value of *const non-Copy T. Reads the value from src without moving it. This leaves the memory in src unchanged.

Similar to read but for *mut T.

Analogue of memset.

Writes value to address.

Type Definitions