{-| Utilities for fetching the results from foreign functions.
-}{-# LANGUAGE ForeignFunctionInterface
#-}moduleSystem.UUID.FromForeign(runAndRead)whereimportData.UUIDimportForeign.CimportForeign.ForeignPtrimportForeign{-| Allocates a pointer to capture the output of a foreign function, runs the
function and interprets the sixteen bytes following the pointer as a UUID.
-}runAndRead::(PtrCChar->IO())->IOUUIDrunAndReadprocedure=dofp<-mallocForeignPtrArray16withForeignPtrfpprocedurewithForeignPtrfp$peek.castPtr