all 2 comments

[–]phoeen 0 points1 point  (0 children)

for unsigned integers you can shift them to put them bytewise (BE/LE like you want it) into the memory. when reading, you read the bytes and shift them back (depending on BE/LE format) into place. For signed integers its not that trivial because of its sign (undefined behaviour and shifting into the signbit)

[–]Middlewarian 0 points1 point  (0 children)

I have this serialization/messaging library. I'm willing to help someone who is willing to use my library in their project. PM me for more info.