[haiku-development] Re: structs in btrfs.h
- From: Hy Che <cvghy116@xxxxxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Thu, 28 Mar 2019 22:08:05 +0700
For instance, see btrfs_dev_item. The devid field has the type __le64,
meaning little endian 64 bit but the bandwidth field is of type __u8.
Only byte is concerned in endianness. Therefore, a little endian 8bit
and a big endian 8bit are not different.
In
https://en.wikipedia.org/wiki/Endianness, they are defined using
"byte" ("whenever addressing memory or sending/storing words bytewise,
the most significant byte...")
Hy
Other related posts: