Esempio n. 1
0
 public void Pack(ref JSClass newValue)
 {
     // FIXME: DeleteOld?
     Marshal.StructureToPtr(newValue, Pointer, false);
 }
Esempio n. 2
0
 public JSClassPtr(JSClass value, out GCHandle handle)
 {
     handle  = GCHandle.Alloc(value);
     Pointer = Marshal.AllocHGlobal(Marshal.SizeOf(value));
     Pack(ref value);
 }