Unicode.Internal.Bits
Fast, static bitmap lookup utilities
Bitmap lookup
lookupBit :: Addr# -> Int -> Int -> Bool Source #
lookupBit addr byteIndex bitIndex
looks up the bit stored in the byte
at index byteIndex
at the bit index bitIndex
using a bitmap starting at the
address addr
. The caller must make sure that the byte at address
(addr + byteIndex)
is legally accessible memory.
CString
unpackCString# :: Addr# -> [Char] Source #