Se api

Just for preview. Please don't merge it.
I would prefer a type where the width isn't specific, in the Linux kernel the type int is often used for reference counters.