Skip to content

isLittleEndian

Source (upstream pre-purge) Current
File consensus/ethash/ethash.go ethash.go
Symbol isLittleEndian isLittleEndian
Ref dde2da0ef~1 etc/v1.17.3-full-node

3-way merge — purge → getc ← upstream

pre-purge
// isLittleEndian returns whether the local system is running in little or big
// endian byte order.
func isLittleEndian() bool {
n := uint32(0x01020304)
return *(*byte)(unsafe.Pointer(&n)) == 0x04
}
core-geth validation — **Identical** ✅ | | | |---|---| | File | [`ethash.go`](https://github.com/etclabscore/core-geth/blob/v1.12.20/consensus/ethash/ethash.go) | | Symbol | `isLittleEndian` | | Ref | `v1.12.20` |

← Consensus & Ethash