Raspberry.IO.InterIntegratedCircuit.I2cDriver.SafeWriteUInt32 C# (CSharp) Method

SafeWriteUInt32() private static method

private static SafeWriteUInt32 ( IntPtr address, uint value ) : void
address System.IntPtr
value uint
return void
        private static void SafeWriteUInt32(IntPtr address, uint value)
        {
            // Make sure we don't rely on the first write, which may get
            // lost if the previous access was to a different peripheral.
            unchecked
            {
                Marshal.WriteInt32(address, (int)value);
                Marshal.WriteInt32(address, (int)value);
            }
        }