DEV Community

Discussion on: Thank you to byte-sized integers

Collapse
 
somedood profile image
Basti Ortiz

Ooooh, thanks! I never knew this library existed. That's pretty cool. I'll consider using it. Under the hood, are these typedefs just class wrappers that take advantage of type punning to accomplish this fancy business?

Collapse
 
jeikabu profile image
jeikabu

Typedefs don't involve classes or anything that complicated. They're rather similar to Rust's type aliases.
"stdint" should be part of the libraries included with whatever compiler you're using. It should "just work" without having to install anything else.

Thread Thread
 
somedood profile image
Basti Ortiz

This is great! I'll see how I can use them properly in my side projects.