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.

  1. 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"
    

  2. 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"
    

  3. 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"
    

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

    network-byte-order Network.ByteOrder

    No documentation available.

  5. toByteString :: WriteBuffer -> IO ByteString

    network-byte-order Network.ByteOrder

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

  6. toShortByteString :: WriteBuffer -> IO ShortByteString

    network-byte-order Network.ByteOrder

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

  7. 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.

  8. package random-bytestring

    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.

  9. data ShortByteString

    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.

  10. staticByteStringExp :: Quote m => ByteString -> m Exp

    store Data.Store.Internal

    No documentation available.

Page 62 of many | Previous | Next