19 writes to IntPtrValue
System.Runtime.InteropServices.JavaScript (19)
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Byte.cs (3)
112slot.IntPtrValue = (IntPtr)NativeMemory.Alloc((nuint)(value.Length * sizeof(byte))); 147slot.IntPtrValue = refPtr + value.Offset; 170slot.IntPtrValue = (IntPtr)Unsafe.AsPointer(ref value.GetPinnableReference());
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Double.cs (3)
117slot.IntPtrValue = (IntPtr)NativeMemory.Alloc((nuint)(value.Length * sizeof(double))); 153slot.IntPtrValue = refPtr + (value.Offset * sizeof(double)); 176slot.IntPtrValue = (IntPtr)Unsafe.AsPointer(ref value.GetPinnableReference());
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Int32.cs (3)
111slot.IntPtrValue = (IntPtr)NativeMemory.Alloc((nuint)(value.Length * sizeof(int))); 147slot.IntPtrValue = refPtr + (value.Offset * sizeof(int)); 170slot.IntPtrValue = (IntPtr)Unsafe.AsPointer(ref value.GetPinnableReference());
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.IntPtr.cs (3)
39slot.IntPtrValue = value; 73slot.IntPtrValue = value.Value; 110slot.IntPtrValue = (IntPtr)value;
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.JSObject.cs (1)
122slot.IntPtrValue = (IntPtr)payload;
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Object.cs (1)
406slot.IntPtrValue = (IntPtr)payload;
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Single.cs (3)
117slot.IntPtrValue = (IntPtr)NativeMemory.Alloc((nuint)(value.Length * sizeof(float))); 153slot.IntPtrValue = refPtr + (value.Offset * sizeof(float)); 176slot.IntPtrValue = (IntPtr)Unsafe.AsPointer(ref value.GetPinnableReference());
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.String.cs (2)
54slot.IntPtrValue = Marshal.StringToHGlobalUni(value); // alloc, JS side will free 132slot.IntPtrValue = (IntPtr)payload;
31 references to IntPtrValue
System.Runtime.InteropServices.JavaScript (31)
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Byte.cs (5)
94Marshal.Copy(slot.IntPtrValue, value, 0, slot.Length); 95NativeMemory.Free((void*)slot.IntPtrValue); 114Marshal.Copy(value, 0, slot.IntPtrValue, slot.Length); 127int byteOffset = (int)(slot.IntPtrValue - (nint)refPtr); 158value = new Span<byte>((void*)slot.IntPtrValue, slot.Length);
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Double.cs (5)
97Marshal.Copy(slot.IntPtrValue, value, 0, slot.Length); 98NativeMemory.Free((void*)slot.IntPtrValue); 120Marshal.Copy(value, 0, slot.IntPtrValue, slot.Length); 133int byteOffset = (int)(slot.IntPtrValue - (nint)refPtr); 164value = new Span<double>((void*)slot.IntPtrValue, slot.Length);
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Int32.cs (5)
94Marshal.Copy(slot.IntPtrValue, value, 0, slot.Length); 95NativeMemory.Free((void*)slot.IntPtrValue); 114Marshal.Copy(value, 0, slot.IntPtrValue, slot.Length); 127int byteOffset = (int)(slot.IntPtrValue - (nint)refPtr); 158value = new Span<int>((void*)slot.IntPtrValue, slot.Length);
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.IntPtr.cs (3)
25value = slot.IntPtrValue; 57value = slot.IntPtrValue; 96value = (byte*)slot.IntPtrValue;
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.JSObject.cs (2)
83JSMarshalerArgument* payload = (JSMarshalerArgument*)slot.IntPtrValue; 91NativeMemory.Free((void*)slot.IntPtrValue);
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Object.cs (2)
361JSMarshalerArgument* payload = (JSMarshalerArgument*)slot.IntPtrValue; 372NativeMemory.Free((void*)slot.IntPtrValue);
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Single.cs (5)
97Marshal.Copy(slot.IntPtrValue, value, 0, slot.Length); 98NativeMemory.Free((void*)slot.IntPtrValue); 120Marshal.Copy(value, 0, slot.IntPtrValue, slot.Length); 133int byteOffset = (int)(slot.IntPtrValue - (nint)refPtr); 164value = new Span<float>((void*)slot.IntPtrValue, slot.Length);
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.String.cs (4)
26value = Marshal.PtrToStringUni(slot.IntPtrValue, slot.Length); 27NativeMemory.Free((void*)slot.IntPtrValue); 88JSMarshalerArgument* payload = (JSMarshalerArgument*)slot.IntPtrValue; 99NativeMemory.Free((void*)slot.IntPtrValue);