Oddbean new post about | logout

Notes by edec528e | export

 Hmmm @ec6e9c30, doesn’t seem to be POSIX, but most libc seem to provide bswap(3) which I’d use optionally #if the target is big endian, then cast to the target struct.

I don’t think there’s a better way at machine level, e.g. in Zig with comptime and @byteSwap builtin it would look less like a hack but 🤷 
 Is there just no good resource on putting data in a uint8_t[] buffer and getting it out again in ... 
 @ec6e9c30, could thou elaborate on the task?  As in a homogeneous buffer with dynamic length or a packed struct? 
 k @af151d0b so what’s the word for being sexually attracted to rectangles again? 
 At this point I’m quite confident that movie scripts are now written with meme baiting in mind. 
Event not found
 alone gives me a big feeling of loneliness