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