ascii-string-1.0.1.4: Compact representation of ASCII strings

Safe HaskellNone
LanguageHaskell2010

AsciiString

Synopsis

Documentation

data AsciiString Source #

Compact representation of ASCII string.

Instances
Eq AsciiString Source # 
Instance details

Defined in AsciiString

Ord AsciiString Source # 
Instance details

Defined in AsciiString

Show AsciiString Source # 
Instance details

Defined in AsciiString

IsString AsciiString Source # 
Instance details

Defined in AsciiString

Generic AsciiString Source # 
Instance details

Defined in AsciiString

Associated Types

type Rep AsciiString :: Type -> Type #

Serialize AsciiString Source # 
Instance details

Defined in AsciiString

NFData AsciiString Source # 
Instance details

Defined in AsciiString

Methods

rnf :: AsciiString -> () #

Hashable AsciiString Source # 
Instance details

Defined in AsciiString

type Rep AsciiString Source # 
Instance details

Defined in AsciiString

type Rep AsciiString = D1 (MetaData "AsciiString" "AsciiString" "ascii-string-1.0.1.4-FuxOzJO05usLYcgzrCkQZl" False) (C1 (MetaCons "AsciiString" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) SourceUnpack SourceStrict DecidedStrict) (Rec0 Int) :*: S1 (MetaSel (Nothing :: Maybe Symbol) SourceUnpack SourceStrict DecidedStrict) (Rec0 (PrimArray Word8))))

length :: AsciiString -> Int Source #

Get the amount of septets.

fromSeptetList :: [Word8] -> AsciiString Source #

Construct from a list of septets encoded in Word8, ignoring the 8th bit.

fromByteString :: ByteString -> AsciiString Source #

Convert from ByteString, ignoring each 8th bit in it.

fromShortByteString :: ShortByteString -> AsciiString Source #

Convert from ShortByteString, ignoring each 8th bit in it.

toSeptetList :: AsciiString -> [Word8] Source #

Convert to a list of septets represented by Word8 with the 8th bit always empty.

toByteString :: AsciiString -> ByteString Source #

Convert to bytestring.

toShortByteString :: AsciiString -> ShortByteString Source #

Convert to short bytestring.