afrantzis / bless

Bless - Gtk# Hex Editor
GNU General Public License v2.0
210 stars 38 forks source link

Feature: Add endian swap layout #65

Open justinvson-pd opened 6 months ago

justinvson-pd commented 6 months ago

Currently the file is always arranged in one way: big endian.

Make a feature so that the layout swaps the two bytes so that it can be viewed in little endian as well.

Example use case: Intel i225/i226 Ethernet controller datasheets use Word address registers instead of byte address, and with a big endian view the bytes are always swapped with the register definition. xxd for instance can do this by adding the -e little-endian command line parameter.