FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cpython/Include/cpython/picklebufobject.h at main · python/cpython · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
python
/
cpython
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
35.3k
Star
74.9k
Code
Issues
5k+
Pull requests
2.6k
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cpython
/
Include
/
cpython
/
picklebufobject.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
31 lines (24 loc) · 848 Bytes
Breadcrumbs
cpython
/
Include
/
cpython
/
picklebufobject.h
Copy path
File metadata and controls
31 lines (24 loc) · 848 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* PickleBuffer object. This is built-in for ease of use from third-party
* C extensions.
*/
#ifndef
Py_PICKLEBUFOBJECT_H
#define
Py_PICKLEBUFOBJECT_H
#ifdef
__cplusplus
extern
"C"
{
#endif
#ifndef
Py_LIMITED_API
PyAPI_DATA
(
PyTypeObject
)
PyPickleBuffer_Type
;
#define
PyPickleBuffer_Check
(
op
) Py_IS_TYPE((op), &PyPickleBuffer_Type)
/* Create a PickleBuffer redirecting to the given buffer-enabled object */
PyAPI_FUNC
(
PyObject
*
)
PyPickleBuffer_FromObject
(
PyObject
*
);
/* Get the PickleBuffer's underlying view to the original object
* (NULL if released)
*/
PyAPI_FUNC
(
const
Py_buffer
*
)
PyPickleBuffer_GetBuffer
(
PyObject
*
);
/* Release the PickleBuffer. Returns 0 on success, -1 on error. */
PyAPI_FUNC
(
int
)
PyPickleBuffer_Release
(
PyObject
*
);
#endif
/* !Py_LIMITED_API */
#ifdef
__cplusplus
}
#endif
#endif
/* !Py_PICKLEBUFOBJECT_H */
Back
|
FazBrowse Home
|
New Git URL