
#12059: Add primop to query for pinned-ness of a ByteArray -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Type: feature request | Status: patch Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2217 Wiki Page: | -------------------------------------+------------------------------------- Description changed by bgamari: @@ -5,0 +5,3 @@ + + This, for instance, allows one to construct a `ByteString` from a + `ByteArray` in an opportunistically zero-copy manner. New description: It would be useful to have, {{{#!hs isPinnedByteArray# :: MutableByteArray# -> Int# }}} This, for instance, allows one to construct a `ByteString` from a `ByteArray` in an opportunistically zero-copy manner. -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12059#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler