Hoogle Search

Within LTS Haskell 24.43 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. sha256DigestFromByteString :: ByteString -> Maybe SHA256Digest

    dhall Dhall.Crypto

    Attempt to interpret a ByteString as a SHA256Digest, returning Nothing if the conversion fails

  2. importCompactByteStrings :: SerializedCompact a -> [ByteString] -> IO (Maybe (Compact a))

    ghc-compact GHC.Compact.Serialized

    Convenience function for importing a compact region that is represented by a list of strict ByteStrings.

  3. copyByteString :: WriteBuffer -> ByteString -> IO ()

    network-byte-order Network.ByteOrder

    Copy the content of ByteString and ff its length. If buffer overrun occurs, BufferOverrun is thrown.

    >>> withWriteBuffer 3 $ \wbuf -> copyByteString wbuf "ABC"
    "ABC"
    

  4. copyShortByteString :: WriteBuffer -> ShortByteString -> IO ()

    network-byte-order Network.ByteOrder

    Copy the content of ShortByteString and ff its length. If buffer overrun occurs, BufferOverrun is thrown.

    >>> withWriteBuffer 5 $ \wbuf -> copyShortByteString wbuf "ABCEF"
    "ABCEF"
    

  5. extractByteString :: Readable a => a -> Int -> IO ByteString

    network-byte-order Network.ByteOrder

    Extracting ByteString from the current offset. The contents is copied, not shared. Its length is specified by the 2nd argument. If the length is positive, the area after the current pointer is extracted and FF the length finally. If the length is negative, the area before the current pointer is extracted and does not FF.

    >>> withReadBuffer "abcdefg" $ \rbuf -> ff rbuf 1 >> extractByteString rbuf 2
    "bc"
    

  6. extractShortByteString :: Readable a => a -> Int -> IO ShortByteString

    network-byte-order Network.ByteOrder

    Extracting ShortByteString from the current offset. The contents is copied, not shared. Its length is specified by the 2nd argument. If the length is positive, the area after the current pointer is extracted and FF the length finally. If the length is negative, the area before the current pointer is extracted and does not FF.

    >>> withReadBuffer "abcdefg" $ \rbuf -> ff rbuf 2 >> extractShortByteString rbuf 3
    "cde"
    

  7. peekByteString :: Buffer -> Int -> IO ByteString

    network-byte-order Network.ByteOrder

    No documentation available.

  8. toByteString :: WriteBuffer -> IO ByteString

    network-byte-order Network.ByteOrder

    Copy the area from start to the current pointer to ByteString.

  9. toShortByteString :: WriteBuffer -> IO ShortByteString

    network-byte-order Network.ByteOrder

    Copy the area from start to the current pointer to ShortByteString.

  10. unsafeWithByteString :: ByteString -> (Buffer -> Offset -> IO a) -> IO a

    network-byte-order Network.ByteOrder

    Using ByteString as Buffer and call the IO action of the second argument by passing the start point and the offset of the ByteString. Note that if a ByteString is created newly, its offset is 0.

Page 61 of many | Previous | Next