Hoogle Search
Within LTS Haskell 24.63 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
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.
-
Efficient generation of random bytestrings This package is deprecated. Please, use genByteString from the random package (version >=1.2) instead. Efficient generation of random bytestrings. The implementation populates uninitialized memory with uniformily distributed random 64 bit words (and 8 bit words for remaining bytes at the end of the bytestring). Random words are generated using the PRNG from the mwc-random package or the pcg-random package. It is also possible to use a custom PRNG by providing an instance for the RandomWords type class and using the function generate from the module Data.ByteString.Random.Internal. The generated byte strings are suitable for statistical applications. They are not suitable for cryptographic applications.
-
rebase Rebase.Prelude A compact representation of a Word8 vector. It has a lower memory overhead than a ByteString and does not contribute to heap fragmentation. It can be converted to or from a ByteString (at the cost of copying the string data). It supports very few other operations.
staticByteStringExp :: Quote m => ByteString -> m Expstore Data.Store.Internal No documentation available.