, Microsoft BCL- , fixed . BitConverter.cs .NET 4.0:
public static unsafe int ToInt32 (byte[]value, int startIndex) {
fixed( byte * pbyte = &value[startIndex]) {
if( startIndex % 4 == 0) {
return *((int *) pbyte);
}
else {
}
}
}
, startIndex, * pbyte. , :
, . ToInt32 , . BCL , CLR.
, , fixed .