Linux server2.hpierson.com 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
Apache
: 162.0.216.123 | : 216.73.216.152
28 Domain
?7.4.33
yvffpqmy
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
swig /
2.0.10 /
python /
[ HOME SHELL ]
Name
Size
Permission
Action
argcargv.i
2.58
KB
-rw-r--r--
attribute.i
34
B
-rw-r--r--
boost_shared_ptr.i
15.93
KB
-rw-r--r--
builtin.swg
16.1
KB
-rw-r--r--
carrays.i
932
B
-rw-r--r--
ccomplex.i
763
B
-rw-r--r--
cdata.i
30
B
-rw-r--r--
cmalloc.i
32
B
-rw-r--r--
cni.i
42
B
-rw-r--r--
complex.i
80
B
-rw-r--r--
cpointer.i
33
B
-rw-r--r--
cstring.i
32
B
-rw-r--r--
cwstring.i
60
B
-rw-r--r--
defarg.swg
1.13
KB
-rw-r--r--
director.swg
10.85
KB
-rw-r--r--
embed.i
2.64
KB
-rw-r--r--
embed15.i
2.8
KB
-rw-r--r--
exception.i
139
B
-rw-r--r--
factory.i
32
B
-rw-r--r--
file.i
1.01
KB
-rw-r--r--
implicit.i
287
B
-rw-r--r--
jstring.i
1.72
KB
-rw-r--r--
pyabc.i
417
B
-rw-r--r--
pyapi.swg
1.31
KB
-rw-r--r--
pybackward.swg
1.13
KB
-rw-r--r--
pybuffer.i
2.72
KB
-rw-r--r--
pyclasses.swg
3.1
KB
-rw-r--r--
pycomplex.swg
2.19
KB
-rw-r--r--
pycontainer.swg
27.43
KB
-rw-r--r--
pydocs.swg
994
B
-rw-r--r--
pyerrors.swg
1.58
KB
-rw-r--r--
pyfragments.swg
551
B
-rw-r--r--
pyhead.swg
5.67
KB
-rw-r--r--
pyinit.swg
12.98
KB
-rw-r--r--
pyiterators.swg
10.39
KB
-rw-r--r--
pymacros.swg
38
B
-rw-r--r--
pyname_compat.i
4.11
KB
-rw-r--r--
pyopers.swg
8.9
KB
-rw-r--r--
pyprimtypes.swg
7.19
KB
-rw-r--r--
pyrun.swg
50.51
KB
-rw-r--r--
pyruntime.swg
645
B
-rw-r--r--
pystdcommon.swg
6.72
KB
-rw-r--r--
pystrings.swg
2.89
KB
-rw-r--r--
python.swg
1.99
KB
-rw-r--r--
pythonkw.swg
2.27
KB
-rw-r--r--
pythreads.swg
2.8
KB
-rw-r--r--
pytuplehlp.swg
308
B
-rw-r--r--
pytypemaps.swg
2.98
KB
-rw-r--r--
pyuserdir.swg
6.14
KB
-rw-r--r--
pywstrings.swg
2.02
KB
-rw-r--r--
std_alloc.i
27
B
-rw-r--r--
std_basic_string.i
2.75
KB
-rw-r--r--
std_carray.i
1.55
KB
-rw-r--r--
std_char_traits.i
33
B
-rw-r--r--
std_common.i
2.27
KB
-rw-r--r--
std_complex.i
469
B
-rw-r--r--
std_container.i
58
B
-rw-r--r--
std_deque.i
678
B
-rw-r--r--
std_except.i
35
B
-rw-r--r--
std_ios.i
66
B
-rw-r--r--
std_iostream.i
107
B
-rw-r--r--
std_list.i
668
B
-rw-r--r--
std_map.i
9.49
KB
-rw-r--r--
std_multimap.i
2.44
KB
-rw-r--r--
std_multiset.i
1.06
KB
-rw-r--r--
std_pair.i
5.79
KB
-rw-r--r--
std_set.i
1.46
KB
-rw-r--r--
std_shared_ptr.i
68
B
-rw-r--r--
std_sstream.i
29
B
-rw-r--r--
std_streambuf.i
31
B
-rw-r--r--
std_string.i
35
B
-rw-r--r--
std_vector.i
691
B
-rw-r--r--
std_vectora.i
829
B
-rw-r--r--
std_wios.i
26
B
-rw-r--r--
std_wiostream.i
166
B
-rw-r--r--
std_wsstream.i
30
B
-rw-r--r--
std_wstreambuf.i
32
B
-rw-r--r--
std_wstring.i
63
B
-rw-r--r--
stl.i
182
B
-rw-r--r--
typemaps.i
4.35
KB
-rw-r--r--
wchar.i
186
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : pyclasses.swg
#ifdef __cplusplus /* SwigPtr_PyObject is used as a replacement of PyObject *, where the INCREF/DECREF are applied as needed. You can use SwigPtr_PyObject in a container, such as std::vector<SwigPtr_PyObject>; or as a member variable: struct A { SwigPtr_PyObject obj; A(PyObject *o) : _obj(o) { } }; or as a input/output value SwigPtr_PyObject func(SwigPtr_PyObject obj) { SwigPtr_PyObject out = PyString_FromFormat("hello %s", PyObject_AsString(obj)); Py_DECREF(out); return out; } just remember to pair the object creation with the proper DECREF, the same as with plain PyObject *ptr, since SwigPtr_PyObject always add one reference at construction. SwigPtr_PyObject is 'visible' at the wrapped side, so you can do: %template(pyvector) std::vector<swig::SwigPtr_PyObject>; and all the proper typemaps will be used. */ namespace swig { %ignore SwigPtr_PyObject; struct SwigPtr_PyObject {}; %apply PyObject * {SwigPtr_PyObject}; %apply PyObject * const& {SwigPtr_PyObject const&}; %typemap(typecheck,precedence=SWIG_TYPECHECK_SWIGOBJECT,noblock=1) SwigPtr_PyObject const& "$1 = ($input != 0);"; /* For output */ %typemap(out,noblock=1) SwigPtr_PyObject { $result = (PyObject *)$1; Py_INCREF($result); } %typemap(out,noblock=1) SwigPtr_PyObject const & { $result = (PyObject *)*$1; Py_INCREF($result); } } %{ namespace swig { class SwigPtr_PyObject { protected: PyObject *_obj; public: SwigPtr_PyObject() :_obj(0) { } SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj) { Py_XINCREF(_obj); } SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj) { if (initial_ref) { Py_XINCREF(_obj); } } SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item) { Py_XINCREF(item._obj); Py_XDECREF(_obj); _obj = item._obj; return *this; } ~SwigPtr_PyObject() { Py_XDECREF(_obj); } operator PyObject *() const { return _obj; } PyObject *operator->() const { return _obj; } }; } %} /* SwigVar_PyObject is used to manage 'in the scope' PyObject * variables, as in int func () { SwigVar_PyObject obj = PyString_FromString("hello"); } ie, 'obj' is created and destructed in the same scope from a python object that carries at least one reference value. SwigVar_PyObject just take care of applying the proper Py_DECREF. Hence, this class is purely internal and not visible at the wrapped side. */ namespace swig { %ignore SwigVar_PyObject; struct SwigVar_PyObject {}; %apply PyObject * {SwigVar_PyObject}; %apply PyObject * const& {SwigVar_PyObject const&}; } %{ namespace swig { struct SwigVar_PyObject : SwigPtr_PyObject { SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { } SwigVar_PyObject & operator = (PyObject* obj) { Py_XDECREF(_obj); _obj = obj; return *this; } }; } %} #endif
Close