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.
genShortByteStringST :: Int -> ST s Word64 -> ST s ShortByteStringrandom System.Random.Stateful Same as genShortByteStringIO, but runs in ST.
uniformByteStringM :: StatefulGen g m => Int -> g -> m ByteStringrandom System.Random.Stateful Generates a pseudo-random ByteString of the specified size.
uniformShortByteString :: StatefulGen g m => Int -> g -> m ShortByteStringrandom System.Random.Stateful uniformShortByteString n g generates a ShortByteString of length n filled with pseudo-random bytes.
fromByteString :: ByteString -> Builderbinary Data.Binary.Builder O(1). A Builder taking a ByteString, satisfying
toLazyByteString (fromByteString bs) = fromChunks [bs]
fromLazyByteString :: ByteString -> Builderbinary Data.Binary.Builder O(1). A Builder taking a lazy ByteString, satisfying
toLazyByteString (fromLazyByteString bs) = bs
fromShortByteString :: ShortByteString -> Builderbinary Data.Binary.Builder O(n). A builder taking ShortByteString and copy it to a Builder, satisfying
- @toLazyByteString (fromShortByteString bs) = fromChunks [fromShort bs]
toLazyByteString :: Builder -> LazyByteStringbinary Data.Binary.Builder Execute a Builder and return the generated chunks as a LazyByteString. The work is performed lazy, i.e., only when a chunk of the LazyByteString is forced.
getByteString :: Int -> Get ByteStringbinary Data.Binary.Get An efficient get method for strict ByteStrings. Fails if fewer than n bytes are left in the input. If n <= 0 then the empty string is returned.
getLazyByteString :: Int64 -> Get ByteStringbinary Data.Binary.Get An efficient get method for lazy ByteStrings. Fails if fewer than n bytes are left in the input.
getLazyByteStringNul :: Get ByteStringbinary Data.Binary.Get Get a lazy ByteString that is terminated with a NUL byte. The returned string does not contain the NUL byte. Fails if it reaches the end of input without finding a NUL.