| Copyright | (c) 2020-2026 Emily Pillmore |
|---|---|
| License | BSD-style |
| Maintainer | Emily Pillmore <emilypi@cohomolo.gy> |
| Stability | Experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Data.ByteString.Base16.Internal.W16.Loop
Description
Encoding loop optimized for Word16 architectures
Synopsis
- innerLoop :: Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> IO ()
- decodeLoop :: ForeignPtr Word8 -> Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> Int -> IO (Either Text ByteString)
- decodeLoopTyped :: Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> IO ()
- lenientLoop :: ForeignPtr Word8 -> Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> Int -> IO ByteString
Documentation
innerLoop :: Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> IO () Source #
Hex encoding inner loop optimized for 16-bit architectures
decodeLoop :: ForeignPtr Word8 -> Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> Int -> IO (Either Text ByteString) Source #
Hex decoding loop optimized for 16-bit architectures
decodeLoopTyped :: Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> IO () Source #
Hex decoding loop optimized for 16-bit architectures
lenientLoop :: ForeignPtr Word8 -> Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> Int -> IO ByteString Source #
Lenient lazy hex decoding loop optimized for 16-bit architectures.
When the Right case is returned, a byte