WriteDouble(IntPtr address, double value) { DoubleStruct ds = new DoubleStruct(value); Marshal.StructureToPtr(ds, address, false); }
ReadDouble(IntPtr address) { DoubleStruct ds = (DoubleStruct)Marshal.PtrToStructure(address, typeof(DoubleStruct)); return(ds.value); }