No description
Find a file
2023-06-08 02:17:04 -04:00
src lleeaakk 2023-06-08 02:10:57 -04:00
.gitignore initial 2023-06-08 00:55:42 -04:00
Cargo.lock lleeaakk 2023-06-08 02:10:57 -04:00
Cargo.toml i cans not spells 2023-06-08 02:17:04 -04:00
LICENSE lleeaakk 2023-06-08 02:10:57 -04:00
README.md lleeaakk 2023-06-08 02:10:57 -04:00

Leak Memory

leaks memory uwu

Examples

Leak 1337 bytes of memory

use leak_memory::{leak, LeakMethod};

fn main() {
    leak(1337, LeakMethod::Lazy);
}

Leak 69 kibibytes

use leak_memory::{leak, LeakMethod, LeakAmount};

fn main() {
    leak("69kib".parse::<LeakAmount>().unwrap(), LeakMethod::Rust);
}

Compilation

dont