projects
/
haskell-directory.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0119835
)
copyBytes copies bytes, not elements; fixes trac #1203
author
Ian Lynagh
<igloo@earth.li>
Mon, 12 Mar 2007 11:35:55 +0000
(11:35 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Mon, 12 Mar 2007 11:35:55 +0000
(11:35 +0000)
Foreign/Marshal/Utils.hs
patch
|
blob
|
history
diff --git
a/Foreign/Marshal/Utils.hs
b/Foreign/Marshal/Utils.hs
index
f1071f9
..
4e03055
100644
(file)
--- a/
Foreign/Marshal/Utils.hs
+++ b/
Foreign/Marshal/Utils.hs
@@
-161,7
+161,7
@@
withMany withFoo (x:xs) f = withFoo x $ \x' ->
copyBytes :: Ptr a -> Ptr a -> Int -> IO ()
copyBytes dest src size = memcpy dest src (fromIntegral size)
--- |Copies the given number of elements from the second area (source) into the
+-- |Copies the given number of bytes from the second area (source) into the
-- first (destination); the copied areas /may/ overlap
--
moveBytes :: Ptr a -> Ptr a -> Int -> IO ()