Top "Endianness" questions

Endianness refers to how multi-byte values are stored in memory, sent between devices or stored on disk.

Same output for htonl() and ntohl() on an integer

I ran the following program on little-endian [LE] machine [Linux, Intel processor]. I am unable to explain the 3 outputs in …

c endianness
Python Comparison of byte literals

The following question arose because I was trying to use bytes strings as dictionary keys and bytes values that I …

python comparison byte endianness base
Does bit-shift depend on endianness?

Suppose I have the number 'numb'=1025 [00000000 00000000 00000100 00000001] represented: On Little-Endian Machine: 00000001 00000100 00000000 00000000 On Big-Endian Machine: 00000000 00000000 00000100 00000001 Now, if I apply Left Shift on 10 …

c endianness
Endianness of integers in Python

I'm working on a program where I store some data in an integer and process it bitwise. For example, I …

python integer endianness
Javascript Typed Arrays and Endianness

I'm using WebGL to render a binary encoded mesh file. The binary file is written out in big-endian format (I …

javascript endianness webgl typed-arrays arraybuffer
How do I convert a big-endian struct to a little endian-struct?

I have a binary file that was created on a unix machine. It's just a bunch of records written one …

c++ struct endianness
Does my AMD-based machine use little endian or big endian?

I'm going though a computers system course and I'm trying to establish, for sure, if my AMD based computer is …

c intel endianness amd-processor
Why is x86 little endian?

A real question that I've been asking myself lately is what design choices brought about x86 being a little endian …

x86 intel endianness cpu-architecture microprocessors
What should I #include to use 'htonl'?

I want to use the htonl function in my ruby c extension, but don't want to use any of the …

c include endianness
Endianness conversion in ARM

How do I convert big endian to little endian in ARM?

arm endianness