haskus-binary-1.3: Haskus binary format manipulation

Safe HaskellNone
LanguageHaskell2010

Haskus.Format.Binary.Bits.Bitwise

Description

Bitwise bit operations

Synopsis

Documentation

class Bitwise a where Source #

Bitwise bit operations

Methods

(.&.) :: a -> a -> a Source #

Bitwise "and"

(.|.) :: a -> a -> a Source #

Bitwise "or"

xor :: a -> a -> a Source #

Bitwise "xor"

complement :: a -> a Source #

Complement

Instances
Bitwise Int Source # 
Instance details

Defined in Haskus.Format.Binary.Bits.Bitwise

Methods

(.&.) :: Int -> Int -> Int Source #

(.|.) :: Int -> Int -> Int Source #

xor :: Int -> Int -> Int Source #

complement :: Int -> Int Source #

Bitwise Int8 Source # 
Instance details

Defined in Haskus.Format.Binary.Bits.Bitwise

Bitwise Int16 Source # 
Instance details

Defined in Haskus.Format.Binary.Bits.Bitwise

Bitwise Int32 Source # 
Instance details

Defined in Haskus.Format.Binary.Bits.Bitwise

Bitwise Int64 Source # 
Instance details

Defined in Haskus.Format.Binary.Bits.Bitwise

Bitwise Integer Source # 
Instance details

Defined in Haskus.Format.Binary.Bits.Bitwise

Bitwise Word Source # 
Instance details

Defined in Haskus.Format.Binary.Bits.Bitwise

Bitwise Word8 Source # 
Instance details

Defined in Haskus.Format.Binary.Bits.Bitwise

Bitwise Word16 Source # 
Instance details

Defined in Haskus.Format.Binary.Bits.Bitwise

Bitwise Word32 Source # 
Instance details

Defined in Haskus.Format.Binary.Bits.Bitwise

Bitwise Word64 Source # 
Instance details

Defined in Haskus.Format.Binary.Bits.Bitwise

Bitwise Buffer Source # 
Instance details

Defined in Haskus.Format.Binary.Buffer

Bitwise a => Bitwise (AsLittleEndian a) Source # 
Instance details

Defined in Haskus.Format.Binary.Endianness

Bitwise a => Bitwise (AsBigEndian a) Source # 
Instance details

Defined in Haskus.Format.Binary.Endianness

(KnownNat n, Bitwise a, Storable a) => Bitwise (Vector n a) Source # 
Instance details

Defined in Haskus.Format.Binary.Vector

Methods

(.&.) :: Vector n a -> Vector n a -> Vector n a Source #

(.|.) :: Vector n a -> Vector n a -> Vector n a Source #

xor :: Vector n a -> Vector n a -> Vector n a Source #

complement :: Vector n a -> Vector n a Source #