@@ -95,9 +95,9 @@ module Streamly.FileSystem.FD
95 -- -- * Array Write
95 -- -- * Array Write
96 -- , writeArray
96 -- , writeArray
97 , writeArrays
97 , writeArrays
98− , writeArraysOfUpto
98+ , writeArraysPackedUpto
100− , writevArraysOfUpto
100+ , writevArraysPackedUpto
102 -- -- * Random Access (Seek)
102 -- -- * Random Access (Seek)
103 -- -- | Unlike the streaming APIs listed above, these APIs apply to devices or
103 -- -- | Unlike the streaming APIs listed above, these APIs apply to devices or
@@ -355,10 +355,10 @@ writev h m = S.mapM_ (liftIO . writeIOVec h) m
355-- specified size.
355-- specified size.
357-- @since 0.7.0
357-- @since 0.7.0
358−{-# INLINE writeArraysOfUpto #-}
358+{-# INLINE writeArraysPackedUpto #-}
359−writeArraysOfUpto :: (MonadIO m, Storable a)
359+writeArraysPackedUpto :: (MonadIO m, Storable a)
360 => Int -> Handle -> SerialT m (Array a) -> m ()
360 => Int -> Handle -> SerialT m (Array a) -> m ()
361−writeArraysOfUpto n h xs = writeArrays h $ A.packArraysChunksOf n xs
361+writeArraysPackedUpto n h xs = writeArrays h $ A.packArraysChunksOf n xs
363-- | Write a stream of arrays to a handle after grouping them in 'IOVec' arrays
363-- | Write a stream of arrays to a handle after grouping them in 'IOVec' arrays
364-- of up to a maximum total size. Writes are performed using gather IO via
364-- of up to a maximum total size. Writes are performed using gather IO via
@@ -366,10 +366,10 @@ writeArraysOfUpto n h xs = writeArrays h $ A.packArraysChunksOf n xs
366-- limited to 512.
366-- limited to 512.
368-- @since 0.7.0
368-- @since 0.7.0
369−{-# INLINE writevArraysOfUpto #-}
369+{-# INLINE writevArraysPackedUpto #-}
370−writevArraysOfUpto :: MonadIO m
370+writevArraysPackedUpto :: MonadIO m
371 => Int -> Handle -> SerialT m (Array a) -> m ()
371 => Int -> Handle -> SerialT m (Array a) -> m ()
372−writevArraysOfUpto n h xs =
372+writevArraysPackedUpto n h xs =
373 writev h $ fromStreamD $ groupIOVecsOf n 512 (toStreamD xs)
373 writev h $ fromStreamD $ groupIOVecsOf n 512 (toStreamD xs)
375-- GHC buffer size dEFAULT_FD_BUFFER_SIZE=8192 bytes.
375-- GHC buffer size dEFAULT_FD_BUFFER_SIZE=8192 bytes.