-- | converts a ByteString to an unboxed vector
bsToVec :: B.ByteString -> UV.Vector Word8
bsToVec bs = UV.generate (B.length bs) (B.index bs)
bsToVec :: B.ByteString -> UV.Vector Word8
bsToVec bs = UV.generate (B.length bs) (B.index bs)
bsToVec bs = UV.generate (B.length bs) (B.index bs)