Safe Haskell | Trustworthy |
---|---|
Language | Haskell2010 |
Synopsis
- module Foreign.ForeignPtr
- plusForeignPtr :: ForeignPtr a -> Int -> ForeignPtr b
Documentation
module Foreign.ForeignPtr
plusForeignPtr :: ForeignPtr a -> Int -> ForeignPtr b #
Advances the given address by the given offset in bytes.
The new ForeignPtr
shares the finalizer of the original,
equivalent from a finalization standpoint to just creating another
reference to the original. That is, the finalizer will not be
called before the new ForeignPtr
is unreachable, nor will it be
called an additional time due to this call, and the finalizer will
be called with the same address that it would have had this call
not happened, *not* the new address.
Since: base-4.10.0.0