Hoogle Search

Within LTS Haskell 24.50 (ghc-9.10.3)

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

  1. mallocBytes :: Int -> IO (Ptr a)

    base Foreign.Marshal.Alloc

    Allocate a block of memory of the given number of bytes. The block of memory is sufficiently aligned for any of the basic foreign types that fits into a memory block of the allocated size. The memory may be deallocated using free or finalizerFree when no longer required.

  2. realloc :: forall a b . Storable b => Ptr a -> IO (Ptr b)

    base Foreign.Marshal.Alloc

    Resize a memory area that was allocated with malloc or mallocBytes to the size needed to store values of type b. The returned pointer may refer to an entirely different memory area, but will be suitably aligned to hold values of type b. The contents of the referenced memory area will be the same as of the original pointer up to the minimum of the original size and the size of values of type b. If the argument to realloc is nullPtr, realloc behaves like malloc.

  3. reallocBytes :: Ptr a -> Int -> IO (Ptr a)

    base Foreign.Marshal.Alloc

    Resize a memory area that was allocated with malloc or mallocBytes to the given size. The returned pointer may refer to an entirely different memory area, but will be sufficiently aligned for any of the basic foreign types that fits into a memory block of the given size. The contents of the referenced memory area will be the same as of the original pointer up to the minimum of the original size and the given size. If the pointer argument to reallocBytes is nullPtr, reallocBytes behaves like malloc. If the requested size is 0, reallocBytes behaves like free.

  4. callocArray :: Storable a => Int -> IO (Ptr a)

    base Foreign.Marshal.Array

    Like mallocArray, but allocated memory is filled with bytes of value zero.

  5. callocArray0 :: Storable a => Int -> IO (Ptr a)

    base Foreign.Marshal.Array

    Like callocArray0, but allocated memory is filled with bytes of value zero.

  6. mallocArray :: Storable a => Int -> IO (Ptr a)

    base Foreign.Marshal.Array

    Allocate storage for the given number of elements of a storable type (like malloc, but for multiple elements).

  7. mallocArray0 :: Storable a => Int -> IO (Ptr a)

    base Foreign.Marshal.Array

    Like mallocArray, but add an extra position to hold a special termination element.

  8. reallocArray :: Storable a => Ptr a -> Int -> IO (Ptr a)

    base Foreign.Marshal.Array

    Adjust the size of an array

  9. reallocArray0 :: Storable a => Ptr a -> Int -> IO (Ptr a)

    base Foreign.Marshal.Array

    Adjust the size of an array including an extra position for the end marker.

  10. pooledMalloc :: Storable a => Pool -> IO (Ptr a)

    base Foreign.Marshal.Pool

    Allocate space for storable type in the given pool. The size of the area allocated is determined by the sizeOf method from the instance of Storable for the appropriate type.

Page 182 of many | Previous | Next