iota-0.1.0.0
Safe HaskellSafe-Inferred
LanguageGHC2021

Data.ByteString.Tiny

Synopsis

Documentation

data TinyByteString Source #

at most 16 bytes

>>> compare (packTBS "a") (packTBS "b")
LT
>>> compare (packTBS "a") (packTBS "ab")
LT

Constructors

TBS !Word64 !Word64 

Instances

Instances details
IsString TinyByteString Source # 
Instance details

Defined in Data.ByteString.Tiny

Show TinyByteString Source # 
Instance details

Defined in Data.ByteString.Tiny

Eq TinyByteString Source # 
Instance details

Defined in Data.ByteString.Tiny

Ord TinyByteString Source # 
Instance details

Defined in Data.ByteString.Tiny

Unbox TinyByteString Source # 
Instance details

Defined in Data.ByteString.Tiny

Vector Vector TinyByteString Source # 
Instance details

Defined in Data.ByteString.Tiny

Methods

basicUnsafeFreeze :: Mutable Vector s TinyByteString -> ST s (Vector TinyByteString)

basicUnsafeThaw :: Vector TinyByteString -> ST s (Mutable Vector s TinyByteString)

basicLength :: Vector TinyByteString -> Int

basicUnsafeSlice :: Int -> Int -> Vector TinyByteString -> Vector TinyByteString

basicUnsafeIndexM :: Vector TinyByteString -> Int -> Box TinyByteString

basicUnsafeCopy :: Mutable Vector s TinyByteString -> Vector TinyByteString -> ST s ()

elemseq :: Vector TinyByteString -> TinyByteString -> b -> b

MVector MVector TinyByteString Source # 
Instance details

Defined in Data.ByteString.Tiny

Methods

basicLength :: MVector s TinyByteString -> Int

basicUnsafeSlice :: Int -> Int -> MVector s TinyByteString -> MVector s TinyByteString

basicOverlaps :: MVector s TinyByteString -> MVector s TinyByteString -> Bool

basicUnsafeNew :: Int -> ST s (MVector s TinyByteString)

basicInitialize :: MVector s TinyByteString -> ST s ()

basicUnsafeReplicate :: Int -> TinyByteString -> ST s (MVector s TinyByteString)

basicUnsafeRead :: MVector s TinyByteString -> Int -> ST s TinyByteString

basicUnsafeWrite :: MVector s TinyByteString -> Int -> TinyByteString -> ST s ()

basicClear :: MVector s TinyByteString -> ST s ()

basicSet :: MVector s TinyByteString -> TinyByteString -> ST s ()

basicUnsafeCopy :: MVector s TinyByteString -> MVector s TinyByteString -> ST s ()

basicUnsafeMove :: MVector s TinyByteString -> MVector s TinyByteString -> ST s ()

basicUnsafeGrow :: MVector s TinyByteString -> Int -> ST s (MVector s TinyByteString)

newtype Vector TinyByteString Source # 
Instance details

Defined in Data.ByteString.Tiny

newtype Vector TinyByteString = V_TinyByteString (Vector Word64)
newtype MVector s TinyByteString Source # 
Instance details

Defined in Data.ByteString.Tiny

newtype MVector s TinyByteString = MV_TinyByteString (MVector s Word64)

lengthTBS :: TinyByteString -> Int Source #

>>> lengthTBS (packTBS "")
0
>>> lengthTBS (packTBS $ take 16 ['a'..])
16