You've already forked linux-packaging-mono
Imported Upstream version 5.10.0.69
Former-commit-id: fc39669a0b707dd3c063977486506b6793da2890
This commit is contained in:
parent
d8f8abd549
commit
e2950ec768
@@ -472,7 +472,18 @@ namespace System {
|
||||
// If we ever run on big endian machines, produce two versions where endianness is specified.
|
||||
Contract.Assert(IsLittleEndian, "This method is implemented assuming little endian with an ambiguous spec.");
|
||||
return *((double*)&value);
|
||||
}
|
||||
}
|
||||
|
||||
#if MONO
|
||||
// Converts a Span into an int
|
||||
public static int ToInt32(ReadOnlySpan<byte> value)
|
||||
{
|
||||
if (value.Length < sizeof(int))
|
||||
ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.value);
|
||||
return Unsafe.ReadUnaligned<int>(ref value.DangerousGetPinnableReference());
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user