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