mirror of
https://github.com/ilyakooo0/streamly.git
synced 2024-09-17 11:37:20 +03:00
Add a comment about newRounded
This commit is contained in:
parent
63f9adfbba
commit
8eab0f07cd
@ -142,6 +142,8 @@ asUnpinnedPtrUnsafe arr f = do
|
||||
nil :: MutByteArray
|
||||
nil = unsafePerformIO $ new 0
|
||||
|
||||
-- XXX add "newRounded" to round up the large size to the next page boundary
|
||||
-- and return the allocated size.
|
||||
{-# INLINE new #-}
|
||||
new :: Int -> IO MutByteArray
|
||||
new nbytes | nbytes < 0 =
|
||||
|
Loading…
Reference in New Issue
Block a user