hs-libp2p-0.2.0.0: Haskell implementation of the libp2p networking stack
Safe HaskellNone
LanguageGHC2021

LibP2P.Protocol.GossipSub.PartialMessages.Bitmap

Description

Little-endian-per-byte bitmap helpers compatible with go-libp2p-pubsub.

Synopsis

Documentation

data Bitmap Source #

Instances

Instances details
Show Bitmap Source # 
Instance details

Defined in LibP2P.Protocol.GossipSub.PartialMessages.Bitmap

Eq Bitmap Source # 
Instance details

Defined in LibP2P.Protocol.GossipSub.PartialMessages.Bitmap

Methods

(==) :: Bitmap -> Bitmap -> Bool #

(/=) :: Bitmap -> Bitmap -> Bool #

emptyBitmap :: Int -> Bitmap Source #

A zeroed bitmap large enough for the requested bit count.

fullBitmap :: Int -> Bitmap Source #

A bitmap whose first bitCount bits are set.

bitmapSet :: Int -> Bitmap -> Bitmap Source #

Set one bit, growing the bitmap when necessary.