You've already forked linux-packaging-mono
Imported Upstream version 6.12.0.86
Former-commit-id: 7a84ce7d08c42c458ac8e74b27186ca863315d79
This commit is contained in:
parent
92747312ea
commit
0b380204a4
@ -86,14 +86,14 @@ namespace System
|
||||
|
||||
var src = (byte*)source;
|
||||
var dst = (byte*)destination;
|
||||
while (sourceBytesToCopy > int.MaxValue) {
|
||||
Memcpy (dst, src, int.MaxValue);
|
||||
sourceBytesToCopy -= int.MaxValue;
|
||||
src += int.MaxValue;
|
||||
dst += int.MaxValue;
|
||||
while (sourceBytesToCopy > uint.MaxValue) {
|
||||
Memmove (dst, src, uint.MaxValue);
|
||||
sourceBytesToCopy -= uint.MaxValue;
|
||||
src += uint.MaxValue;
|
||||
dst += uint.MaxValue;
|
||||
}
|
||||
|
||||
Memcpy (dst, src, (int) sourceBytesToCopy);
|
||||
Memmove (dst, src, (uint) sourceBytesToCopy);
|
||||
}
|
||||
|
||||
[CLSCompliantAttribute (false)]
|
||||
@ -105,14 +105,14 @@ namespace System
|
||||
|
||||
var src = (byte*)source;
|
||||
var dst = (byte*)destination;
|
||||
while (sourceBytesToCopy > int.MaxValue) {
|
||||
Memcpy (dst, src, int.MaxValue);
|
||||
sourceBytesToCopy -= int.MaxValue;
|
||||
src += int.MaxValue;
|
||||
dst += int.MaxValue;
|
||||
while (sourceBytesToCopy > uint.MaxValue) {
|
||||
Memmove (dst, src, uint.MaxValue);
|
||||
sourceBytesToCopy -= uint.MaxValue;
|
||||
src += uint.MaxValue;
|
||||
dst += uint.MaxValue;
|
||||
}
|
||||
|
||||
Memcpy (dst, src, (int) sourceBytesToCopy);
|
||||
Memmove (dst, src, (uint) sourceBytesToCopy);
|
||||
}
|
||||
|
||||
internal static unsafe void memcpy4 (byte *dest, byte *src, int size) {
|
||||
|
Reference in New Issue
Block a user