Esempio n. 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);
 }
Esempio n. 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);
        }
Esempio n. 3
0
 public Dispatcher(PythonMapper inMapper, PythonDictionary inTable, IntPtr module)
 {
     this.mapper = inMapper;
     this.table = inTable;
     this.modulePtr = module;
 }
Esempio n. 4
0
 public Dispatcher(PythonMapper inMapper, PythonDictionary inTable) :
     this(inMapper, inTable, IntPtr.Zero)
 {
 }
Esempio n. 5
0
 public Dispatcher(PythonMapper inMapper, PythonDictionary inTable, IntPtr module)
 {
     this.mapper    = inMapper;
     this.table     = inTable;
     this.modulePtr = module;
 }
Esempio n. 6
0
 public Dispatcher(PythonMapper inMapper, PythonDictionary inTable) :
     this(inMapper, inTable, IntPtr.Zero)
 {
 }