evanw / kiwi

A schema-based binary format for efficiently encoding trees of data

Home Page:http://evanw.github.io/kiwi/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question about endian independent write comment

haberbyte opened this issue · comments

commented

I was wondering if the comment stating “Endian-Independent 32 bit write” is actually true? The code shifts these bits around directly, which should lead to different results on big/little endian architectures, right?

kiwi/kiwi.h

Line 356 in fe3ca94

// Endian-independent 32-bit write

commented

Nevermind, bit shifting operations should still result in the same values regardless of endianness.