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.54
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 /
lib64 /
python3.6 /
site-packages /
Cython /
Utility /
[ HOME SHELL ]
Name
Size
Permission
Action
?;
__pycache__
[ DIR ]
drwxr-xr-x
AsyncGen.c
37.56
KB
-rw-r--r--
Buffer.c
28.79
KB
-rw-r--r--
Builtins.c
16.2
KB
-rw-r--r--
CConvert.pyx
4.24
KB
-rw-r--r--
CMath.c
2.51
KB
-rw-r--r--
Capsule.c
505
B
-rw-r--r--
CommonStructures.c
2.5
KB
-rw-r--r--
Complex.c
9.83
KB
-rw-r--r--
Coroutine.c
81.02
KB
-rw-r--r--
CpdefEnums.pyx
1.85
KB
-rw-r--r--
CppConvert.pyx
5.95
KB
-rw-r--r--
CppSupport.cpp
2.18
KB
-rw-r--r--
CythonFunction.c
41.88
KB
-rw-r--r--
Embed.c
6.52
KB
-rw-r--r--
Exceptions.c
24.77
KB
-rw-r--r--
ExtensionTypes.c
8.29
KB
-rw-r--r--
FunctionArguments.c
11.74
KB
-rw-r--r--
ImportExport.c
21.67
KB
-rw-r--r--
MemoryView.pyx
48.24
KB
-rw-r--r--
MemoryView_C.c
28.1
KB
-rw-r--r--
ModuleSetupCode.c
47.08
KB
-rw-r--r--
ObjectHandling.c
76.32
KB
-rw-r--r--
Optimize.c
36.88
KB
-rw-r--r--
Overflow.c
11.74
KB
-rw-r--r--
Printing.c
4.98
KB
-rw-r--r--
Profile.c
16.3
KB
-rw-r--r--
StringTools.c
40.04
KB
-rw-r--r--
TestCyUtilityLoader.pyx
152
B
-rw-r--r--
TestCythonScope.pyx
1.56
KB
-rw-r--r--
TestUtilityLoader.c
279
B
-rw-r--r--
TypeConversion.c
33.45
KB
-rw-r--r--
__init__.py
1.13
KB
-rw-r--r--
arrayarray.h
3.97
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : arrayarray.h
/////////////// ArrayAPI.proto /////////////// // arrayarray.h // // Artificial C-API for Python's <array.array> type, // used by array.pxd // // last changes: 2009-05-15 rk // 2012-05-02 andreasvc // (see revision control) // #ifndef _ARRAYARRAY_H #define _ARRAYARRAY_H // These two forward declarations are explicitly handled in the type // declaration code, as including them here is too late for cython-defined // types to use them. // struct arrayobject; // typedef struct arrayobject arrayobject; // All possible arraydescr values are defined in the vector "descriptors" // below. That's defined later because the appropriate get and set // functions aren't visible yet. typedef struct arraydescr { int typecode; int itemsize; PyObject * (*getitem)(struct arrayobject *, Py_ssize_t); int (*setitem)(struct arrayobject *, Py_ssize_t, PyObject *); #if PY_MAJOR_VERSION >= 3 char *formats; #endif } arraydescr; struct arrayobject { PyObject_HEAD Py_ssize_t ob_size; union { char *ob_item; float *as_floats; double *as_doubles; int *as_ints; unsigned int *as_uints; unsigned char *as_uchars; signed char *as_schars; char *as_chars; unsigned long *as_ulongs; long *as_longs; #if PY_MAJOR_VERSION >= 3 unsigned long long *as_ulonglongs; long long *as_longlongs; #endif short *as_shorts; unsigned short *as_ushorts; Py_UNICODE *as_pyunicodes; void *as_voidptr; } data; Py_ssize_t allocated; struct arraydescr *ob_descr; PyObject *weakreflist; /* List of weak references */ #if PY_MAJOR_VERSION >= 3 int ob_exports; /* Number of exported buffers */ #endif }; #ifndef NO_NEWARRAY_INLINE // fast creation of a new array static CYTHON_INLINE PyObject * newarrayobject(PyTypeObject *type, Py_ssize_t size, struct arraydescr *descr) { arrayobject *op; size_t nbytes; if (size < 0) { PyErr_BadInternalCall(); return NULL; } nbytes = size * descr->itemsize; // Check for overflow if (nbytes / descr->itemsize != (size_t)size) { return PyErr_NoMemory(); } op = (arrayobject *) type->tp_alloc(type, 0); if (op == NULL) { return NULL; } op->ob_descr = descr; op->allocated = size; op->weakreflist = NULL; op->ob_size = size; if (size <= 0) { op->data.ob_item = NULL; } else { op->data.ob_item = PyMem_NEW(char, nbytes); if (op->data.ob_item == NULL) { Py_DECREF(op); return PyErr_NoMemory(); } } return (PyObject *) op; } #else PyObject* newarrayobject(PyTypeObject *type, Py_ssize_t size, struct arraydescr *descr); #endif /* ifndef NO_NEWARRAY_INLINE */ // fast resize (reallocation to the point) // not designed for filing small increments (but for fast opaque array apps) static CYTHON_INLINE int resize(arrayobject *self, Py_ssize_t n) { void *items = (void*) self->data.ob_item; PyMem_Resize(items, char, (size_t)(n * self->ob_descr->itemsize)); if (items == NULL) { PyErr_NoMemory(); return -1; } self->data.ob_item = (char*) items; self->ob_size = n; self->allocated = n; return 0; } // suitable for small increments; over allocation 50% ; static CYTHON_INLINE int resize_smart(arrayobject *self, Py_ssize_t n) { void *items = (void*) self->data.ob_item; Py_ssize_t newsize; if (n < self->allocated && n*4 > self->allocated) { self->ob_size = n; return 0; } newsize = n + (n / 2) + 1; if (newsize <= n) { /* overflow */ PyErr_NoMemory(); return -1; } PyMem_Resize(items, char, (size_t)(newsize * self->ob_descr->itemsize)); if (items == NULL) { PyErr_NoMemory(); return -1; } self->data.ob_item = (char*) items; self->ob_size = n; self->allocated = newsize; return 0; } #endif /* _ARRAYARRAY_H */
Close