Beispiel #1
0
 public ThreadState(PythonMapper mapper)
 {
     this.mapper = mapper;
     uint size = (uint)Marshal.SizeOf(typeof(PyThreadState));
     this.ptr = this.mapper.PyMem_Malloc(size); // leaka leaka leaka
     CPyMarshal.Zero(this.ptr, size);
 }
Beispiel #2
0
        public ThreadState(PythonMapper mapper)
        {
            this.mapper = mapper;
            uint size = (uint)Marshal.SizeOf(typeof(PyThreadState));

            this.ptr = this.mapper.PyMem_Malloc(size); // leaka leaka leaka
            CPyMarshal.Zero(this.ptr, size);
        }
Beispiel #3
0
 public Dispatcher(PythonMapper inMapper, PythonDictionary inTable, IntPtr module)
 {
     this.mapper = inMapper;
     this.table = inTable;
     this.modulePtr = module;
 }
Beispiel #4
0
 public Dispatcher(PythonMapper inMapper, PythonDictionary inTable) :
     this(inMapper, inTable, IntPtr.Zero)
 {
 }
Beispiel #5
0
 public Dispatcher(PythonMapper inMapper, PythonDictionary inTable, IntPtr module)
 {
     this.mapper    = inMapper;
     this.table     = inTable;
     this.modulePtr = module;
 }
Beispiel #6
0
 public Dispatcher(PythonMapper inMapper, PythonDictionary inTable) :
     this(inMapper, inTable, IntPtr.Zero)
 {
 }