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.
sha256DigestFromByteString :: ByteString -> Maybe SHA256Digestdhall Dhall.Crypto Attempt to interpret a ByteString as a SHA256Digest, returning Nothing if the conversion fails
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.
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"
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"
extractByteString :: Readable a => a -> Int -> IO ByteStringnetwork-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"
extractShortByteString :: Readable a => a -> Int -> IO ShortByteStringnetwork-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"
peekByteString :: Buffer -> Int -> IO ByteStringnetwork-byte-order Network.ByteOrder No documentation available.
toByteString :: WriteBuffer -> IO ByteStringnetwork-byte-order Network.ByteOrder Copy the area from start to the current pointer to ByteString.
toShortByteString :: WriteBuffer -> IO ShortByteStringnetwork-byte-order Network.ByteOrder Copy the area from start to the current pointer to ShortByteString.
unsafeWithByteString :: ByteString -> (Buffer -> Offset -> IO a) -> IO anetwork-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.