Skip to content

Commit

Permalink
inline createAndTrim'
Browse files Browse the repository at this point in the history
  • Loading branch information
SkamDart committed May 26, 2021
1 parent e829e5e commit 3c7f9cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Data/ByteString/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,7 @@ createAndTrim' l f = do
else do ps <- create l' $ \p' ->
memcpy p' (p `plusPtr` off) l'
return (ps, res)
{-# INLINE createAndTrim' #-}

-- | Wrapper of 'Foreign.ForeignPtr.mallocForeignPtrBytes' with faster implementation for GHC
--
Expand Down

0 comments on commit 3c7f9cc

Please sign in to comment.