_cbson.h File Reference

#include <Python.h>
#include <stdio.h>
#include "buffer.h"
Include dependency graph for _cbson.h:
This graph shows which files directly or indirectly include this file:

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

Definition at line 26 of file _cbson.h.

#define PY_SSIZE_T_MIN   0

Definition at line 27 of file _cbson.h.


Typedef Documentation

typedef unsigned int Py_ssize_t

Definition at line 25 of file _cbson.h.


Function Documentation

int buffer_write_bytes ( buffer_t  buffer,
const char *  data,
int  size 
)

Definition at line 130 of file _cbsonmodule.c.

int decode_and_write_pair ( buffer_t  buffer,
PyObject *  key,
PyObject *  value,
unsigned char  check_keys,
unsigned char  top_level 
)

Definition at line 694 of file _cbsonmodule.c.

int write_dict ( buffer_t  buffer,
PyObject *  dict,
unsigned char  check_keys,
unsigned char  top_level 
)

Definition at line 758 of file _cbsonmodule.c.

int write_pair ( buffer_t  buffer,
const char *  name,
Py_ssize_t  name_length,
PyObject *  value,
unsigned char  check_keys,
unsigned char  allow_id 
)

Definition at line 666 of file _cbsonmodule.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines


pymongo
Author(s): Bhaskara Marthi
autogenerated on Fri Jan 11 10:09:03 2013