| Safe Haskell | Safe-Inferred | 
|---|---|
| Language | Haskell2010 | 
PlutusCore.Flat.Endian
Description
Endian utilities
Exported for testing purposes, but not meant to be used outside this package.
Documentation
toBE32 ∷ Word32 → Word32 Source #
Convert a 32 bit value in cpu endianess to big endian
>>>toBE32 0xF0F1F2F3 == if isBigEndian then 0xF0F1F2F3 else 0xF3F2F1F0True
toBE64 ∷ Word64 → Word64 Source #
Convert a 64 bit value in cpu endianess to big endian
>>>toBE64 0xF0F1F2F3F4F5F6F7 == if isBigEndian then 0xF0F1F2F3F4F5F6F7 else 0xF7F6F5F4F3F2F1F0True