@@ -75,7 +75,7 @@ module Streamly.FileSystem.FD
75 -- , readUtf8
75 -- , readUtf8
76 -- , readLines
76 -- , readLines
77 -- , readFrames
77 -- , readFrames
78− , readByChunksUpto
78+ , readInChunksOf
80 -- -- * Array Read
80 -- -- * Array Read
81 -- , readArrayUpto
81 -- , readArrayUpto
@@ -321,13 +321,13 @@ readArrays = readArraysOfUpto defaultChunkSize
321-- read requests at the same time. For serial case we can use async IO. We can
321-- read requests at the same time. For serial case we can use async IO. We can
322-- also control the read throughput in mbps or IOPS.
322-- also control the read throughput in mbps or IOPS.
324−-- | @readByChunksUpto chunkSize handle@ reads a byte stream from a file handle,
324+-- | @readInChunksOf chunkSize handle@ reads a byte stream from a file handle,
325-- reads are performed in chunks of up to @chunkSize@. The stream ends as soon
325-- reads are performed in chunks of up to @chunkSize@. The stream ends as soon
326-- as EOF is encountered.
326-- as EOF is encountered.
328−{-# INLINE readByChunksUpto #-}
328+{-# INLINE readInChunksOf #-}
329−readByChunksUpto :: (IsStream t, MonadIO m) => Int -> Handle -> t m Word8
329+readInChunksOf :: (IsStream t, MonadIO m) => Int -> Handle -> t m Word8
330−readByChunksUpto chunkSize h = AS.flatten $ readArraysOfUpto chunkSize h
330+readInChunksOf chunkSize h = AS.flatten $ readArraysOfUpto chunkSize h
333-- read :: (IsStream t, MonadIO m, Storable a) => Handle -> t m a
333-- read :: (IsStream t, MonadIO m, Storable a) => Handle -> t m a