Psyduck - 可達鴨 之 鴨力山大2


Server : LiteSpeed
System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : alloknri ( 880)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /opt/alt/python39/include/python3.9/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python39/include/python3.9/bytesobject.h
/* Bytes (String) object interface */

#ifndef Py_BYTESOBJECT_H
#define Py_BYTESOBJECT_H
#ifdef __cplusplus
extern "C" {
#endif

#include <stdarg.h>

/*
Type PyBytesObject represents a character string.  An extra zero byte is
reserved at the end to ensure it is zero-terminated, but a size is
present so strings with null bytes in them can be represented.  This
is an immutable object type.

There are functions to create new string objects, to test
an object for string-ness, and to get the
string value.  The latter function returns a null pointer
if the object is not of the proper type.
There is a variant that takes an explicit size as well as a
variant that assumes a zero-terminated string.  Note that none of the
functions should be applied to nil objects.
*/

/* Caching the hash (ob_shash) saves recalculation of a string's hash value.
   This significantly speeds up dict lookups. */

PyAPI_DATA(PyTypeObject) PyBytes_Type;
PyAPI_DATA(PyTypeObject) PyBytesIter_Type;

#define PyBytes_Check(op) \
                 PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_BYTES_SUBCLASS)
#define PyBytes_CheckExact(op) Py_IS_TYPE(op, &PyBytes_Type)

PyAPI_FUNC(PyObject *) PyBytes_FromStringAndSize(const char *, Py_ssize_t);
PyAPI_FUNC(PyObject *) PyBytes_FromString(const char *);
PyAPI_FUNC(PyObject *) PyBytes_FromObject(PyObject *);
PyAPI_FUNC(PyObject *) PyBytes_FromFormatV(const char*, va_list)
                                Py_GCC_ATTRIBUTE((format(printf, 1, 0)));
PyAPI_FUNC(PyObject *) PyBytes_FromFormat(const char*, ...)
                                Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
PyAPI_FUNC(Py_ssize_t) PyBytes_Size(PyObject *);
PyAPI_FUNC(char *) PyBytes_AsString(PyObject *);
PyAPI_FUNC(PyObject *) PyBytes_Repr(PyObject *, int);
PyAPI_FUNC(void) PyBytes_Concat(PyObject **, PyObject *);
PyAPI_FUNC(void) PyBytes_ConcatAndDel(PyObject **, PyObject *);
PyAPI_FUNC(PyObject *) PyBytes_DecodeEscape(const char *, Py_ssize_t,
                                            const char *, Py_ssize_t,
                                            const char *);

/* Provides access to the internal data buffer and size of a string
   object or the default encoded version of a Unicode object. Passing
   NULL as *len parameter will force the string buffer to be
   0-terminated (passing a string with embedded NULL characters will
   cause an exception).  */
PyAPI_FUNC(int) PyBytes_AsStringAndSize(
    PyObject *obj,      /* string or Unicode object */
    char **s,           /* pointer to buffer variable */
    Py_ssize_t *len     /* pointer to length variable or NULL
                           (only possible for 0-terminated
                           strings) */
    );

/* Flags used by string formatting */
#define F_LJUST (1<<0)
#define F_SIGN  (1<<1)
#define F_BLANK (1<<2)
#define F_ALT   (1<<3)
#define F_ZERO  (1<<4)

#ifndef Py_LIMITED_API
#  define Py_CPYTHON_BYTESOBJECT_H
#  include  "cpython/bytesobject.h"
#  undef Py_CPYTHON_BYTESOBJECT_H
#endif

#ifdef __cplusplus
}
#endif
#endif /* !Py_BYTESOBJECT_H */
Name
Size
Permissions
Options
cpython
--
drwxr-xr-x
internal
--
drwxr-xr-x
Python-ast.h
25.579 KB
-rw-r--r--
Python.h
3.449 KB
-rw-r--r--
abstract.h
29.762 KB
-rw-r--r--
asdl.h
1.195 KB
-rw-r--r--
ast.h
0.925 KB
-rw-r--r--
bitset.h
0.457 KB
-rw-r--r--
bltinmodule.h
0.258 KB
-rw-r--r--
boolobject.h
0.864 KB
-rw-r--r--
bytearrayobject.h
1.449 KB
-rw-r--r--
bytesobject.h
2.977 KB
-rw-r--r--
cellobject.h
0.695 KB
-rw-r--r--
ceval.h
5.814 KB
-rw-r--r--
classobject.h
1.618 KB
-rw-r--r--
code.h
0.311 KB
-rw-r--r--
codecs.h
6.634 KB
-rw-r--r--
compile.h
3.689 KB
-rw-r--r--
complexobject.h
1.764 KB
-rw-r--r--
context.h
1.916 KB
-rw-r--r--
datetime.h
9.038 KB
-rw-r--r--
descrobject.h
2.948 KB
-rw-r--r--
dictobject.h
3.628 KB
-rw-r--r--
dynamic_annotations.h
21.942 KB
-rw-r--r--
enumobject.h
0.247 KB
-rw-r--r--
errcode.h
1.586 KB
-rw-r--r--
eval.h
1.181 KB
-rw-r--r--
exports.h
1.072 KB
-rw-r--r--
fileobject.h
1.534 KB
-rw-r--r--
fileutils.h
0.583 KB
-rw-r--r--
floatobject.h
4.258 KB
-rw-r--r--
frameobject.h
0.329 KB
-rw-r--r--
funcobject.h
3.962 KB
-rw-r--r--
genericaliasobject.h
0.326 KB
-rw-r--r--
genobject.h
3.442 KB
-rw-r--r--
graminit.h
2.068 KB
-rw-r--r--
grammar.h
1.778 KB
-rw-r--r--
import.h
2.955 KB
-rw-r--r--
interpreteridobject.h
0.326 KB
-rw-r--r--
intrcheck.h
0.841 KB
-rw-r--r--
iterobject.h
0.509 KB
-rw-r--r--
listobject.h
1.739 KB
-rw-r--r--
longintrepr.h
3.71 KB
-rw-r--r--
longobject.h
9.29 KB
-rw-r--r--
marshal.h
0.784 KB
-rw-r--r--
memoryobject.h
2.699 KB
-rw-r--r--
methodobject.h
3.687 KB
-rw-r--r--
modsupport.h
9.726 KB
-rw-r--r--
moduleobject.h
2.306 KB
-rw-r--r--
namespaceobject.h
0.341 KB
-rw-r--r--
node.h
1.251 KB
-rw-r--r--
object.h
24.051 KB
-rw-r--r--
objimpl.h
8.226 KB
-rw-r--r--
odictobject.h
1.269 KB
-rw-r--r--
opcode.h
4.785 KB
-rw-r--r--
osdefs.h
0.72 KB
-rw-r--r--
osmodule.h
0.284 KB
-rw-r--r--
parsetok.h
2.889 KB
-rw-r--r--
patchlevel.h
1.269 KB
-rw-r--r--
picklebufobject.h
0.826 KB
-rw-r--r--
py_curses.h
2.416 KB
-rw-r--r--
pyarena.h
2.68 KB
-rw-r--r--
pycapsule.h
1.685 KB
-rw-r--r--
pyconfig-64.h
46.879 KB
-rw-r--r--
pyconfig.h
0.158 KB
-rw-r--r--
pyctype.h
1.354 KB
-rw-r--r--
pydebug.h
1.067 KB
-rw-r--r--
pydtrace.h
2.356 KB
-rw-r--r--
pyerrors.h
12.136 KB
-rw-r--r--
pyexpat.h
2.512 KB
-rw-r--r--
pyfpe.h
0.434 KB
-rw-r--r--
pyframe.h
0.455 KB
-rw-r--r--
pyhash.h
4.163 KB
-rw-r--r--
pylifecycle.h
2.086 KB
-rw-r--r--
pymacconfig.h
2.919 KB
-rw-r--r--
pymacro.h
4.805 KB
-rw-r--r--
pymath.h
8.379 KB
-rw-r--r--
pymem.h
4.303 KB
-rw-r--r--
pyport.h
30.54 KB
-rw-r--r--
pystate.h
5.127 KB
-rw-r--r--
pystrcmp.h
0.426 KB
-rw-r--r--
pystrhex.h
0.829 KB
-rw-r--r--
pystrtod.h
1.448 KB
-rw-r--r--
pythonrun.h
7.493 KB
-rw-r--r--
pythread.h
5.799 KB
-rw-r--r--
pytime.h
8.719 KB
-rw-r--r--
rangeobject.h
0.613 KB
-rw-r--r--
setobject.h
3.246 KB
-rw-r--r--
sliceobject.h
2.457 KB
-rw-r--r--
structmember.h
1.982 KB
-rw-r--r--
structseq.h
1.357 KB
-rw-r--r--
symtable.h
5.183 KB
-rw-r--r--
sysmodule.h
1.213 KB
-rw-r--r--
token.h
2.58 KB
-rw-r--r--
traceback.h
0.57 KB
-rw-r--r--
tracemalloc.h
1.088 KB
-rw-r--r--
tupleobject.h
1.576 KB
-rw-r--r--
typeslots.h
2.295 KB
-rw-r--r--
ucnhash.h
1.031 KB
-rw-r--r--
unicodeobject.h
34.596 KB
-rw-r--r--
warnings.h
1.734 KB
-rw-r--r--
weakrefobject.h
2.796 KB
-rw-r--r--