bitstring-0.0.0: Lazy bit stringsSource codeContentsIndex
Data.BitString.BigEndian
Description
Big-endian bitstrings. In this context, "big-endian" means that the bits in the bytes are in the opposite order than what would be logical. If you ask me, this is just plain stupid, but some people apparently still use it...
Synopsis
data BitString
empty :: BitString
bitString :: ByteString -> BitString
bitStringLazy :: ByteString -> BitString
unsafeBitString' :: Int64 -> Int64 -> ByteString -> BitString
take :: Int64 -> BitString -> BitString
drop :: Int64 -> BitString -> BitString
splitAt :: Int64 -> BitString -> (BitString, BitString)
append :: BitString -> BitString -> BitString
concat :: [BitString] -> BitString
toList :: BitString -> [Bool]
fromList :: [Bool] -> BitString
to01List :: BitString -> [Word8]
from01List :: [Word8] -> BitString
null :: BitString -> Bool
length :: BitString -> Int64
foldl' :: (a -> Bool -> a) -> a -> BitString -> a
findSubstring :: BitString -> BitString -> Maybe Int64
realizeBitStringLazy :: BitString -> ByteString
realizeBitStringStrict :: BitString -> ByteString
realizeBitString' :: BitString -> [ByteString]
Documentation
data BitString Source
show/hide Instances
empty :: BitStringSource
bitString :: ByteString -> BitStringSource
Create a BitString from a strict ByteString
bitStringLazy :: ByteString -> BitStringSource
Create a BitString from a lazy ByteString
unsafeBitString'Source
:: Int64offset
-> Int64length
-> ByteStringsource
-> BitString
Create a BitString from a portion of a ByteString. Warning! No boundary checks are performed!
take :: Int64 -> BitString -> BitStringSource
drop :: Int64 -> BitString -> BitStringSource
splitAt :: Int64 -> BitString -> (BitString, BitString)Source
append :: BitString -> BitString -> BitStringSource
concat :: [BitString] -> BitStringSource
toList :: BitString -> [Bool]Source
fromList :: [Bool] -> BitStringSource
to01List :: BitString -> [Word8]Source
from01List :: [Word8] -> BitStringSource
null :: BitString -> BoolSource
length :: BitString -> Int64Source
foldl' :: (a -> Bool -> a) -> a -> BitString -> aSource
findSubstringSource
:: BitStringthe string to search for
-> BitStringthe string to search in
-> Maybe Int64the index of the first substring, if exists
realizeBitStringLazy :: BitString -> ByteStringSource
realizeBitStringStrict :: BitString -> ByteStringSource
realizeBitString' :: BitString -> [ByteString]Source
Produced by Haddock version 2.4.1