32 lines
355 B
Markdown
32 lines
355 B
Markdown
|
|
||
|
# Leak Memory
|
||
|
|
||
|
leaks memory uwu
|
||
|
|
||
|
## Examples
|
||
|
|
||
|
Leak 1337 bytes of memory
|
||
|
|
||
|
```rs
|
||
|
use leak_memory::{leak, LeakMethod};
|
||
|
|
||
|
fn main() {
|
||
|
leak(1337, LeakMethod::Lazy);
|
||
|
}
|
||
|
```
|
||
|
|
||
|
Leak 69 kibibytes
|
||
|
|
||
|
```rs
|
||
|
use leak_memory::{leak, LeakMethod, LeakAmount};
|
||
|
|
||
|
fn main() {
|
||
|
leak("69kib".parse::<LeakAmount>().unwrap(), LeakMethod::Rust);
|
||
|
}
|
||
|
```
|
||
|
|
||
|
|
||
|
## Compilation
|
||
|
|
||
|
dont
|