License | BSD-style |
---|---|
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Stability | stable |
Portability | Good |
Safe Haskell | None |
Language | Haskell2010 |
- toW64BE :: ByteArrayAccess bs => bs -> Int -> BE Word64
- toW64LE :: ByteArrayAccess bs => bs -> Int -> LE Word64
- mapAsWord64 :: ByteArray bs => (Word64 -> Word64) -> bs -> bs
- mapAsWord128 :: ByteArray bs => (Word128 -> Word128) -> bs -> bs
Documentation
toW64BE :: ByteArrayAccess bs => bs -> Int -> BE Word64 Source
Transform a bytearray at a specific offset into a Word64 tagged as BE (Big Endian)
no bounds checking. unsafe
toW64LE :: ByteArrayAccess bs => bs -> Int -> LE Word64 Source
Transform a bytearray at a specific offset into a Word64 tagged as LE (Little Endian)
no bounds checking. unsafe
mapAsWord64 :: ByteArray bs => (Word64 -> Word64) -> bs -> bs Source
map blocks of 64 bits of a bytearray, creating a new bytestring of equivalent size where each blocks has been mapped through @f
no length checking is done. unsafe
mapAsWord128 :: ByteArray bs => (Word128 -> Word128) -> bs -> bs Source
map blocks of 128 bits of a bytearray, creating a new bytestring of equivalent size where each blocks has been mapped through @f
no length checking is done. unsafe