_cbson.h File Reference
#include <Python.h>
#include <stdio.h>
#include "buffer.h"
Go to the source code of this file.
Defines |
#define | PY_SSIZE_T_MAX UINT_MAX |
#define | PY_SSIZE_T_MIN 0 |
Typedefs |
typedef unsigned int | Py_ssize_t |
Functions |
int | buffer_write_bytes (buffer_t buffer, const char *data, int size) |
int | decode_and_write_pair (buffer_t buffer, PyObject *key, PyObject *value, unsigned char check_keys, unsigned char top_level) |
int | write_dict (buffer_t buffer, PyObject *dict, unsigned char check_keys, unsigned char top_level) |
int | write_pair (buffer_t buffer, const char *name, Py_ssize_t name_length, PyObject *value, unsigned char check_keys, unsigned char allow_id) |
Define Documentation
#define PY_SSIZE_T_MAX UINT_MAX |
Typedef Documentation
Function Documentation
int buffer_write_bytes |
( |
buffer_t |
buffer, |
|
|
const char * |
data, |
|
|
int |
size | |
|
) |
| | |
int decode_and_write_pair |
( |
buffer_t |
buffer, |
|
|
PyObject * |
key, |
|
|
PyObject * |
value, |
|
|
unsigned char |
check_keys, |
|
|
unsigned char |
top_level | |
|
) |
| | |
int write_dict |
( |
buffer_t |
buffer, |
|
|
PyObject * |
dict, |
|
|
unsigned char |
check_keys, |
|
|
unsigned char |
top_level | |
|
) |
| | |
int write_pair |
( |
buffer_t |
buffer, |
|
|
const char * |
name, |
|
|
Py_ssize_t |
name_length, |
|
|
PyObject * |
value, |
|
|
unsigned char |
check_keys, |
|
|
unsigned char |
allow_id | |
|
) |
| | |