Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 381 Bytes

endian.md

File metadata and controls

18 lines (14 loc) · 381 Bytes

Endian tips

$ echo -n "1234" | od -t x # Little Endian
0000000          34333231
0000004
$ echo -n "1234" | xxd -e # Print Little Endian
00000000: 34333231                             1234

$ echo -n "1234" | xxd # Print Big Endian
00000000: 3132 3334                                1234

$ echo -n "1234" | hexdump -ve '1/1 "%.2x"' # Print Big Endian
31323334