@@ -72,7 +72,7 @@ module Streamly.Memory.Array.Types
7272 , shrinkToFit
7373 , memcpy
7474 , memcmp
75− , bytesToCount
75+ , bytesToElemCount
7676
7777 , unlines
7878 )
@@ -213,9 +213,9 @@ memcmp p1 p2 len = do
213213unsafeInlineIO :: IO a -> a
214214unsafeInlineIO (IO m) = case m realWorld# of (# _, r #) -> r
215215
216−{-# INLINE bytesToCount #-}
217−bytesToCount :: Storable a => a -> Int -> Int
218−bytesToCount x n =
216+{-# INLINE bytesToElemCount #-}
217+bytesToElemCount :: Storable a => a -> Int -> Int
218+bytesToElemCount x n =
219219 let elemSize = sizeOf x
220220 in n + elemSize - 1 `div` elemSize
221221