ps-alloc

Crates.iops-alloc
lib.rsps-alloc
version0.1.0-6
sourcesrc
created_at2025-01-26 02:04:59.448647+00
updated_at2025-04-13 08:13:05.071073+00
descriptiona reasonably safe allocator
homepage
repository
max_upload_size
id1530997
size8,091
Prokop Schield (prokopschield)

documentation

README

ps-alloc - a reasonably safe allocator

This crate provides two methods - alloc and free.

While this crate does implement several safety precautions, you still shouldn't call free on stuff willy-nilly, because that is undefined behaviour.

free is NOT guaranteed to fail when provided anything other than a valid pointer allocated by alloc.

Do not call free any pointers not allocated by alloc.

Both alloc and free return Results. alloc returning an Err does not signify a problem. free returning any error besides NullPtr means your program is alredy in an undefined state and you should consider aborting it.

Commit count: 0

cargo fmt