tar-0.6.0.0: Reading, writing and manipulating ".tar" archive files.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Codec.Archive.Tar.Index.StringTable

Synopsis

Documentation

data StringTable id Source #

An efficient mapping from strings to a dense set of integers.

Instances

Instances details
Show (StringTable id) Source # 
Instance details

Defined in Codec.Archive.Tar.Index.StringTable

(Eq id, Enum id) => Eq (StringTable id) Source # 
Instance details

Defined in Codec.Archive.Tar.Index.StringTable

Methods

(==) :: StringTable id -> StringTable id -> Bool #

(/=) :: StringTable id -> StringTable id -> Bool #

lookup :: Enum id => StringTable id -> ByteString -> Maybe id Source #

Look up a string in the token table. If the string is present, return its corresponding index.

index :: Enum id => StringTable id -> id -> ByteString Source #

Given the index of a string in the table, return the string.

construct :: Enum id => [ByteString] -> StringTable id Source #

Given a list of strings, construct a StringTable mapping those strings to a dense set of integers. Also return the ids for all the strings used in the construction.