bitstring-0.0.1: Lazy bit strings
Safe HaskellNone
LanguageHaskell2010

Data.BitString.BigEndian

Description

Lazy, big-endian bitstrings, somewhat similar to lazy bytestrings.

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 doesn't make too much sense, but this convention apparently still have usage...

This module is intended to be imported qualified.

Synopsis

Documentation

data BitString Source #

Instances

Instances details
Show BitString Source # 
Instance details

Defined in Data.BitString.BigEndian

Eq BitString Source #

warning! very slow! TODO: make a better routine

Instance details

Defined in Data.BitString.BigEndian

unsafeBitString' Source #

Arguments

:: Int64

offset

-> Int64

length

-> ByteString

source

-> BitString 

Create a BitString from a portion of a ByteString. Warning! No boundary checks are performed!

foldl' :: (a -> Bool -> a) -> a -> BitString -> a Source #

findSubstring Source #

Arguments

:: BitString

the string to search for

-> BitString

the string to search in

-> Maybe Int64

the index of the first substring, if exists