bond-haskell-0.1.5.0: Runtime support for BOND serialization
Data.Bond.Internal.ZigZag
class Integral t => ZigZagable t where Source #
Methods
toZigZag :: t -> Word64 Source #
fromZigZag :: Word64 -> t Source #
Instances
toZigZag :: Int16 -> Word64 Source #
fromZigZag :: Word64 -> Int16 Source #
toZigZag :: Int32 -> Word64 Source #
fromZigZag :: Word64 -> Int32 Source #
toZigZag :: Int64 -> Word64 Source #
fromZigZag :: Word64 -> Int64 Source #