Top "Endianness" questions

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

How is each byte in an integer stored in CPU / memory?

i have tried this char c[4]; int i=89; memcpy(&c[0],&i,4); cout<<(int)c[0]<<…

c++ memcpy endianness
which CPUs support MOVBE instruction?

Sometimes GCC generates this instruction when compiling with -march=atom. Does each and every Intel Atom CPU support MOVBE? What …

assembly x86 endianness
What are the use-cases for IsLittleEndian in BitConverter class?

I was so happy when I discovered IsLittleEndian field in BitConverter. I thought of course it should be there and …

c# .net vb.net endianness bitconverter
Cross-platform definition of _byteswap_uint64 and _byteswap_ulong

Visual Studio defines _byteswap_uint64 and _byteswap_ulong in stdlib.h. Am I right to assume, that this is not …

include cross-platform endianness htonl
Why does an 8-bit field have endianness?

See the definition of TCP header in /netinet/tcp.h: struct tcphdr { u_int16_t th_sport; /* source port */ u_…

c networking interop system endianness
PNG file format endianness?

Im not sure if endian is the right word but.. I have been parsing through a PNG file and I …

png endianness
pcap files and endianness

Running the file command against a pcap file will print out something along the lines of - $ file pcap.pcap …

endianness pcap libpcap tcpdump
How does this program work?

#include <stdio.h> int main() { float a = 1234.5f; printf("%d\n", a); return 0; } It displays a 0!! How is …

c++ c memory printf endianness